Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317452 - [context][content assist][jdt] Content assist shows a public class as part of ArrayList
Summary: [context][content assist][jdt] Content assist shows a public class as part of...
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact: Shawn Minto CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 10:15 EDT by Ankur Sharma CLA
Modified: 2015-07-31 20:07 EDT (History)
4 users (show)

See Also:


Attachments
Java class file (12.96 KB, text/plain)
2010-06-21 10:16 EDT, Ankur Sharma CLA
no flags Details
snapshot (215.71 KB, image/jpeg)
2010-06-21 10:17 EDT, Ankur Sharma CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ankur Sharma CLA 2010-06-21 10:15:39 EDT
Could not find the steps to reproduce but the snapshot shows something is wrong.

The MultiFixResolution is being shown as part or ArrayList.

Attaching the erroneous class and snapshot.
Comment 1 Ankur Sharma CLA 2010-06-21 10:16:22 EDT
Created attachment 172330 [details]
Java class file
Comment 2 Ankur Sharma CLA 2010-06-21 10:17:02 EDT
Created attachment 172331 [details]
snapshot
Comment 3 Ankur Sharma CLA 2010-06-21 14:06:43 EDT
Sorry folks. The real culprit was Mylyn. Forwarding it to them.

No content assist is better than wrong content assist.
Comment 4 Steffen Pingel CLA 2010-06-21 14:37:52 EDT
Ankur, could you provide more detail why you believe this error was caused by Mylyn? Does the behavior change if you activate/deactivate a task? What happens if you disable the Task-Focused content assist in the preferences?
Comment 5 Ankur Sharma CLA 2010-06-21 15:26:47 EDT
(In reply to comment #4)
> Ankur, could you provide more detail why you believe this error was caused by
> Mylyn? 
I didn't thought of Mylyn first hand. And my first guess was JDT UI. They hinted me it could be due to Mylyn. So this is what I tried.
I opened the same workspace with an eclipse instance without Mylyn and I did not see the problem. I then opened a new workspace with same workspace using Eclipse SDK with Mylyn. The problem appeared after I did a F3 on the class that is being shown here. Before this I had opened Task List view to ensure no task was active.

> Does the behavior change if you activate/deactivate a task? 
No task was active.

> What happens
> if you disable the Task-Focused content assist in the preferences?
problem persists even after disabling them

It is reproducible though if you check out o.e.pde.ui and replace the ResolutionGenerator.java (attached). I tried to reproduce with simpler case but could not. However I did encountered this exception once


eclipse.buildId=I20100603-1500
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-20080811 (JIT enabled)
J9VM - 20080809_21892_lHdSMr
JIT  - 20080620_1845_r8
GC   - 200806_19
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86


Warning
Tue Jun 22 00:37:14 IST 2010
The 'org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer' proposal computer from the 'org.eclipse.mylyn.java.ui' plug-in did not complete normally. The extension took too long to return from the 'computeCompletionProposals()' operation.
Comment 6 Steffen Pingel CLA 2010-06-21 16:05:03 EDT
Thanks for the details. We'll try to reproduce it.
Comment 7 Sam Davis CLA 2015-07-31 20:07:59 EDT
I wonder if this is the same issue as bug 461809, that the Java proposal computer doesn't work correctly when it runs after other proposal computers.
Comment 8 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn