OpenJPA
  1. OpenJPA
  2. OPENJPA-2010

Duplicate meta data warning logged due to parsing the same location twice

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, 2.1.0
    • Fix Version/s: 2.0.2, 2.1.2, 2.2.0
    • Component/s: kernel
    • Labels:
      None

      Description

      I've only seen this when entities are defined in an XML mapping file, and then only in some difficult to replicate classloader environments.

      The same XML mapping file may be parsed more than one time, resulting in a misleading warning message about duplicate metadata. The metadata is in fact identical, and does not indicate a problem.

      To detect this condition we can store the source file and line number where the meta data was defined, and only issue the warning if the metadata is defined in a different location.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Michael Dick
            Reporter:
            Michael Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development