Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-372

PCEnhancer throws away its classloader

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jdf@us.ibm.com Jonathan Feinberg
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: