Bug 117121

Summary: Can't create class called A$B in eclipse
Product: [Eclipse Project] JDT Reporter: Christophe Cornu <christophe.cornu+eclipse>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Christophe Cornu CLA 2005-11-18 13:43:29 EST
Eclipse 3.2 M3
JRE 1.4.2 or 1.5

In package explorer, select a package.
Create new class. Name: 'A$B'

The java file is marked with the following error:
The public type A$B must be defined in its own file.

I'm replacing my classes A$B with A_B so that won't impact me really.
Olivier T. indicatd this is still an error case that needs to be reported.
Comment 1 Jerome Lanneluc CLA 2005-11-24 04:06:46 EST
Changed BasicCompilationUnit#getMainTypeName() to return 'A$B' if the file name is not a .class file name.
Added regression test ReconcileTests#testTypeWithDollarName().
Comment 2 David Audel CLA 2005-12-12 13:15:50 EST
Verified for 3.2 M4 using build I20051212-0010