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

Bug 370601

Summary: Nullpointer occurs when processing inner classes that have choice mappings
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Proposed Changes none

Description Denise Smith CLA 2012-02-03 14:32:39 EST
The following NPE was noted.   If the inner class (which is not referenced by anything) is removed the context builds fine.

Caused by: java.lang.NullPointerException
    at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateChoiceCollectionMapping(MappingsGenerator.java:826)
    at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:539)
    at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2189)
    at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2149)
    at org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:199)
    at org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:185)
    at org.eclipse.persistence.jaxb.JAXBContext$TypeMappingInfoInput.createContextState(JAXBContext.java:905)
Comment 1 Denise Smith CLA 2012-02-03 14:45:55 EST
Created attachment 210523 [details]
Proposed Changes
Comment 2 Denise Smith CLA 2012-02-06 11:00:30 EST
Fix checked in to 2.3 and trunk
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:32:42 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink