Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 105183

Summary: Class x "cannot be resolved to a type"
Product: [Eclipse Project] JDT Reporter: Geert Poels <Geert.Poels>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
First java test class
none
Second java source file none

Description Geert Poels CLA 2005-07-26 12:43:11 EDT
Create a mini-project with the two javafiles attachments.
Open the file GeertTest.java
Notice how it gives an error that "AndMe cannot be resolved to a type"
Now open GeertTestTwo.java
Go back to GeertTest
See the error disappear.
Close GeertTestTwo and the error re-appears.
Comment 1 Geert Poels CLA 2005-07-26 12:44:08 EDT
Created attachment 25307 [details]
First java test class
Comment 2 Geert Poels CLA 2005-07-26 12:44:25 EDT
Created attachment 25308 [details]
Second java source file
Comment 3 Olivier Thomann CLA 2005-07-26 19:54:52 EDT
This is a consequence of using secondary types within the same compilation unit.
Comment 4 Kent Johnson CLA 2005-07-27 10:58:54 EDT

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