[hibernate-issues] [Hibernate-JIRA] Reopened: (HHH-6916) Improper handling of primitive arrays in AbstractQueryImpl.registerParameterBinding

Strong Liu (JIRA) noreply at atlassian.com
Tue Dec 27 00:22:19 EST 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Strong Liu reopened HHH-6916:
-----------------------------


reopen this one since the test _org.hibernate.ejb.criteria.ParameterTest_ fails on all Oracle DB.

see http://hudson.qa.jboss.com/hudson/job/hibernate-core-master-matrix/database=oracle11gR1,jdk=java16_default,label=hibernate/lastCompletedBuild/testReport/ for more details

> Improper handling of primitive arrays 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
>            Assignee: Steve Ebersole
>            Priority: Minor
>              Labels: query
>             Fix For: 4.0.1
>
>          Time Spent: 2h 43m
>
> 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