You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jonathan Feinberg (JIRA)" <ji...@apache.org> on 2007/09/14 19:54:32 UTC

[jira] Updated: (OPENJPA-372) PCEnhancer throws away its classloader

     [ https://issues.apache.org/jira/browse/OPENJPA-372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jonathan Feinberg updated OPENJPA-372:
--------------------------------------

    Priority: Blocker  (was: Major)

> 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
>            Priority: Blocker
>
> 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.