History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-2015
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Patrick Roemer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
db4o Core

Load time instrumentation relies on client code to configure db4o to use context classloader

Created: 23/Jul/10 12:38 PM   Updated: 27/Jul/10 03:51 PM
Component/s: Java ByteCode Engineering
Affects Version/s: 8.0.156, 7.12.156
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Java
Issue Links:
Related
 

Order: 4
Labels:
Participants: Patrick Roemer
Number of Attachments: 0
Number of Comments: 0


 Description  « Hide
Db4oEnhancedLauncher/Db4oInstrumentationLauncher only set up the thread context CL to point to the instrumenting CL. If db4o is not explicitly configured to reflect against the context CL, the user space objects will be loaded by the instrumenting CL, while the db4o reflector layer will only see the app CL, resulting in a ClassCastException upon store/retrieve.

Workaround:
config.common().reflectWith(Thread.currentThread().getContextClassLoader());

Even if we just accept this behavior, it needs to be documented and we need a test case.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.