Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370601 - Nullpointer occurs when processing inner classes that have choice mappings
Summary: Nullpointer occurs when processing inner classes that have choice mappings
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-03 14:32 EST by Denise Smith CLA
Modified: 2022-06-09 10:32 EDT (History)
0 users

See Also:


Attachments
Proposed Changes (8.37 KB, patch)
2012-02-03 14:45 EST, Denise Smith CLA
no flags Details | Diff

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