[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2912?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira