Description
PCEnhancer does not work at all in our build environment, as it is throwing away its classloader, and can't find anything. Patch:
— openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java (revision 575761)
+++ openjpa-kernel/src/main/java/org/apache/openjpa/enhance/PCEnhancer.java (working copy)
@@ -4338,7 +4338,7 @@
log.trace(_loc.get("enhance-running", o));
if (o instanceof String)
- bc = project.loadClass((String) o);
+ bc = project.loadClass((String) o, loader);
else
bc = project.loadClass((Class) o);
enhancer = new PCEnhancer(conf, bc, repos, loader);
Attachments
Issue Links
- duplicates
-
OPENJPA-367 PCEnhancer does not find meta data for entities using pure XML annotation
- Closed