Community
Participate
Working Groups
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
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