Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-377 RuntimeUnenhancedClasses support can go into a "half baked" state
  3. OPENJPA-408

Improve error processing for openjpa.RuntimeUnenhancedClasses property settings

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0.0, 1.0.1, 1.1.0
    • 1.0.1, 1.1.0
    • kernel
    • None

    Description

      From the parent Issue...

      o I think the "unsupported" option for the openjpa.RuntimeUnenhancedClasses property is hiding a more meaningful message. For example, if I run with "warn" option, I get the warning message (runtime-optimization-disabled) and a null is returned. In this scenario, the processing continues and then I get this message:

      <openjpa-1.1.0-SNAPSHOT-r420667:573398M nonfatal user error>
      org.apache.openjpa.persistence.ArgumentException: Attempt to cast instance "..." to
      PersistenceCapable failed. Ensure that it has been enhanced.

      But, if I run with the "unsupported" option, then the only message I get is the (runtime-optimization-disabled) exception. Although it still indicates an error exists, it's not as clear as the "PersistenceCapable" message. Not sure if we should re-think the "warn" vs "unsupported" argument, or maybe just an update to the message text for (runtime-optimization-disabled).

      Attachments

        Activity

          People

            kwsutter Kevin W. Sutter
            kwsutter Kevin W. Sutter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: