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

Bug 334557

Summary: ClassNotFoundException with inner classes
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
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 XP   
Whiteboard:
Attachments:
Description Flags
proposed fix and test case none

Description Matt MacIvor CLA 2011-01-17 13:03:52 EST
When processing classes loaded from a different ClassLoader than the one handed into JAXB, ClassNotFound exception can occur for any classes indirectly discovered during processing.

This includes, inner classes, property types and types found via XMLJavaTypeAdapter.

EclipseLink maintains a list of all classes passed in on a custom classloader so that they can be loaded again later if required. This list never gets updated when new classes are discovered, which will cause this issue to arise.
Comment 1 Matt MacIvor CLA 2011-01-17 13:06:14 EST
Created attachment 186933 [details]
proposed fix and test case
Comment 2 Matt MacIvor CLA 2011-01-20 11:19:02 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:18:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink