[hibernate-issues] [Hibernate-JIRA] Issue Comment Edited: (HHH-6916) Not proper array-handling in AbstractQueryImpl.registerParameterBinding
Christoph Friedl (JIRA)
noreply at atlassian.com
Thu Dec 22 04:27:20 EST 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44679#comment-44679 ]
Christoph Friedl edited comment on HHH-6916 at 12/22/11 3:26 AM:
-----------------------------------------------------------------
non-working link to the other issue ...
here is the right one:
[HHH-5817|https://hibernate.onjira.com/browse/HHH-5817]
was (Author: thefriedc):
non-working to the other issue ...
here is the right one:
[HHH-5817|https://hibernate.onjira.com/browse/HHH-5817]
> 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
> Labels: query
>
> 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