Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-8435

JPA: validation of generic generator strategy class uses Arrays.binarySearch for non-sorted string array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.3.0.M4
    • 3.2.0.CR1
    • hibernate
    • None

    Description

      The validator could add wrong error messages
      Test case:
      1. Create <generator_class> class which implements several interfaces and "org.hibernate.id.IdentifierGenerator"
      1. create @GenericGenerator(strategy="<generator_class>")
      2. where generator class
      3. change places of the interfaces and the error will occur

      FAILURE: wrong error appeared

      Also it check only direct(or superclasses) interfaces

      Test case2:
      1. create interface MyInterface implements "org.hibernate.id.IdentifierGenerator"
      2. create @GenericGenerator(strategy="<generator_class>")
      3. where <generator_class> is a class which implements interface MyInterface

      FAILURE: wrong error appeared

      Attachments

        Activity

          People

            dgeraskov Dmitry Geraskov (Inactive)
            dgeraskov Dmitry Geraskov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: