Bug 117121 - Can't create class called A$B in eclipse
Summary: Can't create class called A$B in eclipse
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-18 13:43 EST by Christophe Cornu CLA
Modified: 2005-12-12 13:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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