[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6916) Not proper array-handling in AbstractQueryImpl.registerParameterBinding

Christoph Friedl (JIRA) noreply at atlassian.com
Thu Dec 22 03:50:19 EST 2011


Not proper array-handling in AbstractQueryImpl.registerParameterBinding
-----------------------------------------------------------------------

                 Key: HHH-6916
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6916
             Project: Hibernate Core
          Issue Type: Bug
          Components: entity-manager, query-hql, query-sql
         Environment: hibernate-entitymanager-3.6.4.Final
            Reporter: Christoph Friedl
            Priority: Minor


Setting arrays other than Object[] as query parameter throws an exception because of the following code line:

{{else if ( value.getClass().isArray() && value.getClass().equals( Object[].class ) )}}

{{value.getClass().equals( Object[].class )}} just returns true if he given parameter is indeed of type Object[]

e.g. String[].class does not equal Object[].class

A very similar issue has been discussed some time ago - [#HHH-5817]

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list