You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Andy Schlaikjer (JIRA)" <ji...@apache.org> on 2008/01/10 18:21:33 UTC
[jira] Commented: (OPENJPA-372) PCEnhancer throws away its
classloader
[ https://issues.apache.org/jira/browse/OPENJPA-372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557704#action_12557704 ]
Andy Schlaikjer commented on OPENJPA-372:
-----------------------------------------
hmm.. perhaps i was too quick to link this issue with OPENJPA-482. The latter may only relate to the Ant task supporting the enhancer. At first glance it did seem as though anything affecting the classloader might play into OPENJPA-482.
> 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
> Fix For: 1.0.1, 1.1.0
>
>
> 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.