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

MethodComparator in AnnotationPersistenceMetaDataParser should also compare parameters

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.3.0
    • Component/s: kernel
    • Labels:
      None

      Description

      AnnotationPersistenceMetaDataParser contains a MethodComparator which only compares the class + the method name. Too bad I have (had...) 2 methods with the same name in my EntityListener:

      @PreUpdate
      public void updateChangeLog(Object entity) { ..

      and also

      private void updateChangeLog(BaseEntity he, ChangeLogEntry cle)

      which is a private helper method.

      Due to the bug in MethodComparator, my @PreUpdate sometimes didn't get detected.

        Attachments

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              struberg Mark Struberg
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: