[hibernate-issues] [Hibernate-JIRA] Created: (HHH-5744) Return value check missing for ResultSet.next method
Suresh Thummalapenta (JIRA)
noreply at atlassian.com
Sun Nov 21 16:07:13 EST 2010
Return value check missing for ResultSet.next method
----------------------------------------------------
Key: HHH-5744
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5744
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.6.0
Reporter: Suresh Thummalapenta
Priority: Minor
We developed a mining-based approach that recovers specifications for APIs of JavaSDK and uses those specifications to detect defects statically. In our study, we found that at various places, return checks are missing in the core component of Hibernate. It would be great if you could analyze and fix those issues.
Class: org.hibernate.id.GUIDGenerator.java
Method: generate, Line 67
Needs to check the return value of ResultSet.next() method, since it can return false if no rows exist and getString results in exception.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list