OpenJPA
  1. OpenJPA
  2. OPENJPA-372

PCEnhancer throws away its classloader

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: kernel
    • Labels:
      None

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

        Issue Links

          Activity

          Hide
          Albert Lee added a comment -

          The fix for these 2 reported problems are the same.

          Show
          Albert Lee added a comment - The fix for these 2 reported problems are the same.
          Hide
          Kevin Sutter added a comment -

          Resolved via OPENJPA-367.

          Show
          Kevin Sutter added a comment - Resolved via OPENJPA-367 .
          Hide
          Andy Schlaikjer added a comment -

          these must be related...

          Show
          Andy Schlaikjer added a comment - these must be related...
          Hide
          Andy Schlaikjer added a comment -

          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.

          Show
          Andy Schlaikjer added a comment - 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 .

            People

            • Assignee:
              Unassigned
              Reporter:
              Jonathan Feinberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development