Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348590 - XSD2Java package name generation
Summary: XSD2Java package name generation
Status: RESOLVED WONTFIX
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 11:19 EDT by Kai B. Heinz CLA
Modified: 2012-10-05 01:34 EDT (History)
1 user (show)

See Also:


Attachments

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