From: <leg...@at...> - 2004-01-06 10:55:17
|
The following comment has been added to this issue: Author: Max Rydahl Andersen Created: Tue, 6 Jan 2004 4:54 AM Body: i looked at it - but could not come up with a good behavior if it is null....should it throw a better excpetion, or ? --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-596 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-596 Summary: AbstractQueryImpl.setParameterList may have 0 length list Type: Bug Status: Open Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Max Rydahl Andersen Reporter: Chris Mercer Created: Fri, 2 Jan 2004 12:57 PM Updated: Tue, 6 Jan 2004 4:54 AM Environment: Hibernate 2.1.1, mysql Description: Here is the source code for the method public Query setParameterList(String name, Collection vals) throws HibernateException { setParameterList(name, vals, guessType( vals.iterator().next() ) ); return this; } The problems comes in when the vals collection is size 0. The vals.iterator().next() will fail with a NoSuchElementException. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2004-01-08 06:58:26
|
The following comment has been added to this issue: Author: Gavin King Created: Thu, 8 Jan 2004 12:57 AM Body: Yeah, if thats all that can be done, I suppose so... --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-596 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-596 Summary: AbstractQueryImpl.setParameterList may have 0 length list Type: Bug Status: Open Priority: Major Project: Hibernate2 Components: core Versions: 2.1 Assignee: Max Rydahl Andersen Reporter: Chris Mercer Created: Fri, 2 Jan 2004 12:57 PM Updated: Thu, 8 Jan 2004 12:57 AM Environment: Hibernate 2.1.1, mysql Description: Here is the source code for the method public Query setParameterList(String name, Collection vals) throws HibernateException { setParameterList(name, vals, guessType( vals.iterator().next() ) ); return this; } The problems comes in when the vals collection is size 0. The vals.iterator().next() will fail with a NoSuchElementException. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2004-01-20 06:03:59
|
The following comment has been added to this issue: Author: CVS Notification Service Created: Tue, 20 Jan 2004 12:01 AM Body: CVS COMMIT LOG: SUBJECT: [Hibernate-commits] Hibernate2/src/net/sf/hibernate/impl AbstractQueryImpl.java,1.1.2.19,1.1.2.20 Fixes HB-596. allow empty collections in setParameterList and throws exception when passing null --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-596 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-596 Summary: AbstractQueryImpl.setParameterList may have 0 length list Type: Bug Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components: core Fix Fors: 2.1.1 Versions: 2.1 Assignee: Max Rydahl Andersen Reporter: Chris Mercer Created: Fri, 2 Jan 2004 12:57 PM Updated: Tue, 20 Jan 2004 12:01 AM Environment: Hibernate 2.1.1, mysql Description: Here is the source code for the method public Query setParameterList(String name, Collection vals) throws HibernateException { setParameterList(name, vals, guessType( vals.iterator().next() ) ); return this; } The problems comes in when the vals collection is size 0. The vals.iterator().next() will fail with a NoSuchElementException. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |
From: <leg...@at...> - 2004-01-20 06:03:59
|
The following comment has been added to this issue: Author: CVS Notification Service Created: Tue, 20 Jan 2004 12:01 AM Body: CVS COMMIT LOG: SUBJECT: [Hibernate-commits] Hibernate2/test/org/hibernate/test FooBarTest.java,1.1.2.20,1.1.2.21 Fixes HB-596. allow empty collections in setParameterList and throws exception when passing null --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-596 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-596 Summary: AbstractQueryImpl.setParameterList may have 0 length list Type: Bug Status: Closed Priority: Major Resolution: FIXED Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components: core Fix Fors: 2.1.1 Versions: 2.1 Assignee: Max Rydahl Andersen Reporter: Chris Mercer Created: Fri, 2 Jan 2004 12:57 PM Updated: Tue, 20 Jan 2004 12:01 AM Environment: Hibernate 2.1.1, mysql Description: Here is the source code for the method public Query setParameterList(String name, Collection vals) throws HibernateException { setParameterList(name, vals, guessType( vals.iterator().next() ) ); return this; } The problems comes in when the vals collection is size 0. The vals.iterator().next() will fail with a NoSuchElementException. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |