Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334557 - ClassNotFoundException with inner classes
Summary: ClassNotFoundException with inner classes
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-17 13:03 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:18 EDT (History)
0 users

See Also:


Attachments
proposed fix and test case (7.55 KB, patch)
2011-01-17 13:06 EST, Matt MacIvor CLA
no flags Details | Diff

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