Bug 134102 - Weird behavior of Add Import
Summary: Weird behavior of Add Import
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-03-30 11:55 EST by Alex Chapiro CLA
Modified: 2009-08-30 02:09 EDT (History)
3 users (show)

See Also:


Attachments
Snapshot of the problem (252.20 KB, image/jpeg)
2006-03-30 11:57 EST, Alex Chapiro CLA
no flags Details
Illustration of the problem (25.29 KB, image/jpeg)
2006-04-15 19:03 EDT, Alex Chapiro CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Chapiro CLA 2006-03-30 11:55:53 EST
Editing source, I added the following line:
List updatedImages = new ArrayList();
(see attached image). Then I selected List and pressed Ctrl-Shift-M. Empty dialog came up. OK was always disabled. On the other hand, ArrayList didn't have this problem. I tried to add List in another classes and got the same behavior. Manual adding import statement for List fixed compilation problem. After reloading of Eclipse Add Import for List worked fine.
Comment 1 Alex Chapiro CLA 2006-03-30 11:57:06 EST
Created attachment 37335 [details]
Snapshot  of the problem
Comment 2 Dani Megert CLA 2006-03-30 11:59:55 EST
Which build?
Anything in .log?
Comment 3 Tom Hofmann CLA 2006-04-03 06:37:24 EDT
Caused by the history?
Comment 4 Benno Baumgartner CLA 2006-04-03 07:05:09 EDT
(In reply to comment #3)
> Caused by the history?
> 

Hard to tell without the log. The History is just used to sort the entries, it does not remove/add an entry.
Comment 5 Alex Chapiro CLA 2006-04-03 09:54:40 EDT
Build 3.2M5. Unfortunately, there was no trapped exception in the log.
Comment 6 Martin Aeschlimann CLA 2006-04-05 10:35:24 EDT
Hmm, strange. Need a reproducable example.
Comment 7 Alex Chapiro CLA 2006-04-15 19:01:49 EDT
Got the same error today with M6. Once again about List. I added line 

	private List fFiles = new ArrayList();

I was able to add import for ArrayList, but not for List. Unfortunatelly, there is nothing in .log (last error 24 hours before: Java Model Exception: Java Model Status [Unknown javadoc format for add(int, E) [in List [in List.class [in java.util [in C:\Program Files\Java\jre1.5.0_05\lib\rt.jar [in com.qnx.tools.ide.systembuilder.core]]]]]]
at org.eclipse.jdt.internal.core.BinaryMethod.extractJavadoc(BinaryMethod.java:527)), and I'm not in debug session to trace the problem.
However, List is not a culprit. If I try to open other java sources and open Open Type dialog, it comes up, but does not work properly any more, as you can see from my attachment (I cannot explain the content of the list, it does not make sense for me).
Comment 8 Alex Chapiro CLA 2006-04-15 19:03:05 EDT
Created attachment 38642 [details]
Illustration of the problem
Comment 9 Alex Chapiro CLA 2006-04-15 22:53:34 EDT
I'm sorry, I realized than I had attached a wrong image. It was "Abs*" instead of "*" in "Select a type" field :-((
Comment 10 Denis Roy CLA 2009-08-30 02:09:16 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.