Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 348590

Summary: XSD2Java package name generation
Product: [Modeling] EMF Reporter: Kai B. Heinz <kai_benjamin.heinz>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: kai_benjamin.heinz
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kai B. Heinz CLA 2011-06-07 11:19:07 EDT
Using the XSD2Java ANT Task on a given XSD produces faulty package names. The URI is like 'http://example.org/StandardInterface' and the generated package is 'org.example.standard.interface'. By using the key-word 'interface' as package name eclipse runs into problems. Doing it using the UI results in the package name 'org.example.standard.interface_', which works fine.
Comment 1 Ed Merks CLA 2012-10-05 01:34:57 EDT
The UI has more access to JDT's support. An easy workaround is to use an ecore annotation to specify the package name.