Bug 32505

Summary: M5 build incorrectly reports unresolvable type errors for non-public classes in files with different name
Product: [Eclipse Project] JDT Reporter: John P. A. Verhaeg <jverhaeg>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: c.hauser, christof_marti, Frank.Cornelissen, nickell, sma
Version: 2.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description John P. A. Verhaeg CLA 2003-02-21 13:46:27 EST
Unresolvable type errors are shown in the editors for references to non-public 
classes that are defined in files whose name doesn't match the class (but does 
match another public class defined in the same file).  The actual compiler 
doesn't have any problem, so nothing shows up in the Tasks view.
Comment 1 Philipe Mulet CLA 2003-02-24 05:11:27 EST
This is a known issue when targeting secondary types. Note that these are 
usually not a good idea, since when performing incremental compilation, there 
is a chance that these files could be missing.

We could fix this down the road by looking in every single compilation unit 
(mean open and parse contents to find these types). Though doable, the penalty 
hit would not be acceptable.

Deferring (could use our index).
Comment 2 Philipe Mulet CLA 2003-03-06 17:34:24 EST
*** Bug 34002 has been marked as a duplicate of this bug. ***
Comment 3 Philipe Mulet CLA 2003-04-03 07:09:57 EST
*** Bug 36012 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2003-04-03 07:10:51 EST
*** Bug 32889 has been marked as a duplicate of this bug. ***
Comment 5 Donna Malayeri CLA 2004-09-22 05:07:16 EDT
This is also a problem for plugins--ITypeBinding.resolveTypeBinding() will 
return null.
Comment 6 Dani Megert CLA 2005-02-01 09:19:00 EST
*** Bug 81155 has been marked as a duplicate of this bug. ***
Comment 7 Frederic Fusier CLA 2007-04-02 07:14:43 EDT
Reopen to close as duplicate
Comment 8 Frederic Fusier CLA 2007-04-02 07:18:38 EDT

*** This bug has been marked as a duplicate of bug 36032 ***
Comment 9 Frederic Fusier CLA 2007-04-02 07:24:10 EDT
Verified for 3.2 using M20060629-1905.