[jbosstools-issues] [JBoss JIRA] (JBIDE-8435) JPA: validation of generic generator strategy class uses Arrays.binarySearch for non-sorted string array

Dmitry Geraskov (Commented) (JIRA) jira-events at lists.jboss.org
Wed Oct 5 08:27:16 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-8435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12632444#comment-12632444 ] 

Dmitry Geraskov commented on JBIDE-8435:
----------------------------------------

You are right Jiri, there is another bug now which appear if do not use package name in "implements" statement.
                
> JPA: validation of generic generator strategy class uses Arrays.binarySearch for non-sorted string array
> --------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-8435
>                 URL: https://issues.jboss.org/browse/JBIDE-8435
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: hibernate
>    Affects Versions: 3.2.0.CR1
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.3.0.M2
>
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list