| Summary: | NPE thrown when generating schema from class | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Nan Li <nan.n.li> | ||||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | blaise.doughan, denise.mahar, eclipselink.oxm-inbox | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows 7 | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 195541 [details]
stack traces
Created attachment 195773 [details]
Proposed change and tests
Created attachment 195774 [details]
Updated patch
Modified schema generation to avoid the null pointer and to create the appropriate attributes. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |
Build Identifier: eclipselink-2.3.0.v20110510-r9336 NullPointerException is thrown when trying to generate schema from the following class: @XmlType(namespace="personal-info") public class Test { @XmlAttribute(namespace="personal-info") public String foo; } The attached file includes both stack traces of Eclipselink 2.1.2 and EclipesLnk 2.3.0. PS: schema can be generated successful with JDK 1.6.0_23 for the class above. Reproducible: Always