openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Feinberg (JIRA)" <j...@apache.org>
Subject [jira] Created: (OPENJPA-372) PCEnhancer throws away its classloader
Date Fri, 14 Sep 2007 17:54:32 GMT
PCEnhancer throws away its classloader
--------------------------------------

                 Key: OPENJPA-372
                 URL: https://issues.apache.org/jira/browse/OPENJPA-372
             Project: OpenJPA
          Issue Type: Bug
          Components: kernel
    Affects Versions: 1.0.0
            Reporter: Jonathan Feinberg


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);


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message