[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1503) NPE
Vincent Ricard (JIRA)
noreply at atlassian.com
Tue Mar 4 10:10:33 EST 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29666 ]
Vincent Ricard commented on HHH-1503:
-------------------------------------
This bug seems fixed since the method code is:
public void releaseBorrowedConnection() {
if ( borrowedConnection != null ) {
try {
BorrowedConnectionProxy.renderUnuseable( borrowedConnection );
}
finally {
borrowedConnection = null;
}
}
}
> NPE
> ---
>
> Key: HHH-1503
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1503
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Affects Versions: 3.1.2
> Reporter: Igor I Nikonoff
> Priority: Minor
>
> ConnectionManager.java releaseBorrowedConnection method NEED FIX
> public void releaseBorrowedConnection() {
> if ( borrowedConnection != null ) {
> BorrowedConnectionProxy.renderUnuseable( borrowedConnection );
> borrowedConnection = null;
> }
> }
> because in BorrowedConnectionProxy.renderUnuseable method following check to not null borrowedConnection.
> PS. orig method is:
> public void releaseBorrowedConnection() {
> if ( borrowedConnection != null ) {
> borrowedConnection = null;
> BorrowedConnectionProxy.renderUnuseable( borrowedConnection );
> }
> }
--
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