Bug 144477 - "Indirectly referenced from required .class files"
Summary: "Indirectly referenced from required .class files"
Status: RESOLVED DUPLICATE of bug 140879
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 12:13 EDT by coolman5453 CLA
Modified: 2006-06-02 09:26 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description coolman5453 CLA 2006-05-30 12:13:17 EDT
This bug exists within Eclipse Version 3.2.0, I20060519-1206

I was working with a drag-and-drop tree class based on JTree.  It was working fine for the past hour, but all of the sudden I got an error about:

"The type java.util.set cannot be resolved. It is indirectly referenced from required .class files"

I ended up fighting with it for about 15-30 mintues, and finally decided to try
closing Eclipse and restarting it.  That fixed the problem.

Then, today I got a similar error:

"The type java.util.Iterator cannot be resolved. It is indirectly
referenced from required .class files"

With java.util.Iterator, I imported the entire java.util package into my class file, and it had no effect to the error message.  But sure enough, close Eclipse, restart it, and the error goes away.

I would really like to not have to restart Eclipse every 5 minutes :-p.  This is affecting my work process considerably, since I have to wait a minute for Eclipse to start back up, and then get focused on what I was working on before the error occured.  If this error could be fixed, it would be greatly appreciated.
Comment 1 Philipe Mulet CLA 2006-05-30 12:33:44 EDT
We suspect a timing issue here. 
Coolman - do you remember a 3.2 build which worked fine for you before ?

Also, is the error visible in the problem view, or only in the editor ?
Last, which VM are you using to run Eclipse on ?
Comment 2 coolman5453 CLA 2006-05-31 08:59:52 EDT
This is the first 3.2 build I'm trying...wanted to play around with the new data functionality.

I believe it's only visible in the editor, but I haven't checked the problem view yet.  I will check it the next time the error occurs...I'm sure I'll get at least one instance today :).

Eclipse is using jre 1.5.0_06 (confirmed it using SysInternals Process Explorer), but I also have j2re 1.4.2_06 installed.
Comment 3 coolman5453 CLA 2006-05-31 09:57:01 EDT
It doesn't show up in the Problems view.  Although, this time something interesting happened that may help you figure out what's going on...

I was working with the Class.forName function, and I typed in as much as "Class.", then scrolled down to forName, and pressed F2 (since I do believe in the previous version of Eclipse, F2 used to give focus to the tooltip so that it could be scrolled through, copied, etc.)  Of course, in this version, it doesn't work.

So I pressed Ctrl+Space, since the list was just begging me to try it :-p.  (I know...nothing would show up for templates for the Class class anyways)  Then the error occured:

"The type java.lang.Class cannot be resolved.  It is indirectly referenced from required .class files"

When I restarted Eclipse, the error went away.  I couldn't reproduce the error with the above procedure.

Could the errors possibly be linked to the dropdown of the function parameters?
Comment 4 Jerome Lanneluc CLA 2006-06-01 04:13:19 EDT
Soryy, I cannot reproduce. 

However could you please delete org.eclipse.jdt.core_3.2.0.v_668.jar from
your plugins directory, copy
http://www.eclipse.org/jdt/core/patches/org.eclipse.jdt.core_3.2.0.z20060531-1812.jar
to this plugins directory instead, and let me know if this improves things ?
Comment 5 coolman5453 CLA 2006-06-01 09:02:18 EDT
Just applied the patch...and I will let you know if there are any issues (I should know in an hour or two...)

(just a note...not that it would affect anything...but I had org.eclipse.jdt.core_3.2.0.v_667.jar in my plugins directory instead of org.eclipse.jdt.core_3.2.0.v_668.jar.)
Comment 6 Jerome Lanneluc CLA 2006-06-01 09:48:02 EDT
v_667 means that you're on 3.2 RC5 (v_668 is 3.2 RC6). But the patch should still apply.
Comment 7 Jerome Lanneluc CLA 2006-06-02 07:47:10 EDT
Please ignore patch in comment 4. I identified the cause (bad side effect on a MethodInfo in the Java model cache) and posted a new patch. Could you please delete any org.eclipse.jdt.core_3.2.0.*.jar from your plugins directory, copy
http://www.eclipse.org/jdt/core/patches/org.eclipse.jdt.core_3.2.0.z20060602-1334.jar
to this plugins directory instead, and confirm this fixes the problem ?
Comment 8 Jerome Lanneluc CLA 2006-06-02 07:57:12 EDT
If the patch fixes the problem, this bug would be a dup of bug 140879.
Comment 9 coolman5453 CLA 2006-06-02 09:26:15 EDT
Yeah...the second patch seems to work (the first patch you sent me also worked.)

I marked it as a duplicate...sorry about that.  Bugzilla should really get a better embedded search engine...about 90% of the bug reports I've posted have been duplicates, yet I couldn't find them using the search.

*** This bug has been marked as a duplicate of 140879 ***