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

PCEnhancer cannot enhance an entity bean in a jar

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      linux, java 1.6.0_12

      Description

      The PCEnhancer fails when trying to enhance an entity bean found in a jar. It tries and fails to write the enhanced class output to the jar rather than the build directory of the project.

      This means I cannot have my entity bean superclass in a seperate framework-centric project for re-use by all JPA-based projects, unless I enhance the class when jarring up the framework project. This would prevent me from sharing the jar with other JPA-based projects which don't use OpenJPA.

      I would recommend that the PCEnhancer checks the file path to write the enhanced class to before writing and removes any Jar-prefix if present, writing the class to the normal build directory.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adam.hardy@cyberspaceroad.com Adam Hardy
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: