Bug 86990

Summary: Can't restore a top level type from binding key if cu doesn't contain type with cu name
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2005-03-02 09:21:53 EST
I20050301-1230.

ASTParser#createASTs(..) cannot restore a top level type from a type binding key
if the declaring CU doesn't contain a type with the same name as the CU.

CU p/A.java:

package p;
class One { }
class Two { }

... the keys for One and Two cannot be restored. See also bug 83500.
Comment 1 Jerome Lanneluc CLA 2006-03-31 08:07:06 EST
Post 3.2
Comment 2 Jerome Lanneluc CLA 2007-03-14 06:13:56 EDT
Reopening to mark as dup
Comment 3 Jerome Lanneluc CLA 2007-03-14 06:15:43 EDT

*** This bug has been marked as a duplicate of bug 177115 ***
Comment 4 Maxime Daniel CLA 2007-03-20 04:14:44 EDT
Verified for 3.3 M6 using build I20070319-1335.

BatchASTCreationTest#test083 covers that case.