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

MethodComparator in AnnotationPersistenceMetaDataParser should also compare parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 2.3.0
    • kernel
    • 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

        1. OPENJPA-2197_test.patch
          0.7 kB
          Mark Struberg

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: