Bug 228375

Summary: Invalid import generated by "Organize Imports". Contains '$'
Product: [Eclipse Project] JDT Reporter: Xevi Serrats <tomcatbsd>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: VERIFIED WORKSFORME QA Contact:
Severity: minor    
Priority: P3 CC: jerome_lanneluc, tomcatbsd
Version: 3.3.2   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
JAR file
none
Screenshot none

Description Xevi Serrats CLA 2008-04-23 07:12:20 EDT
Created attachment 97200 [details]
JAR file

Build ID: Eclipse Europa

Steps To Reproduce:
1.- Import the file xmltypes.jar
2.- Declare a Field of type Report.
3.- Use the "organize Dialog" to localize the package of the Report Class.
4.- Appeats a class $ on the name.

import com.<no_company>.<no_product>.FormsDocument$Forms$Report;

See the screenshot.



More information:
I can send the JAVA code (generated by XMLBeans) or the XSD file. Just ask me.
Comment 1 Xevi Serrats CLA 2008-04-23 07:15:18 EDT
Created attachment 97202 [details]
Screenshot
Comment 2 Jerome Lanneluc CLA 2008-04-24 11:07:23 EDT
I just verified that the proposed types are dot based names with I20080422-0800.
Closing as WORKSFORME.
Comment 3 Jerome Lanneluc CLA 2008-04-28 07:28:16 EDT
Verified for 3.4M7 using I20080427-2000