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

PCEnhancer throws away its classloader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 1.0.0
    • 1.0.1, 1.1.0
    • kernel
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: