[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2912) Reader returned by ClobImpl can not used after it has been closed
Lukas Krecan (JIRA)
noreply at atlassian.com
Fri Oct 26 04:42:40 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28564 ]
Lukas Krecan commented on HHH-2912:
-----------------------------------
import java.io.IOException;
import java.io.Reader;
import java.sql.SQLException;
import junit.framework.TestCase;
import org.hibernate.lob.ClobImpl;
public class TestClobImpl extends TestCase{
public void testClob() throws SQLException, IOException
{
ClobImpl clobImpl = new ClobImpl("test");
Reader reader = clobImpl.getCharacterStream();
//do read ...
reader.close();
clobImpl.getCharacterStream();
}
}
> Reader returned by ClobImpl can not used after it has been closed
> -----------------------------------------------------------------
>
> Key: HHH-2912
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2912
> Project: Hibernate3
> Issue Type: Bug
> Components: core
> Affects Versions: 3.2.1
> Reporter: Lukas Krecan
> Priority: Minor
>
> If the reader returned by ClobImpl.getCharacterStream() is closed, method getCharacterStream() can not be called again. Exception is throw when trying to reset underlying StringReader (which is closed).
--
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