提交 72034dfc authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 180: when deserializing objects, the context class loader is used instead…

Issue 180: when deserializing objects, the context class loader is used instead of the default class loader if the system property "h2.useThreadContextClassLoader" is set. Thanks a lot to Noah Fontes for the patch!
上级 5476de2d
...@@ -1242,6 +1242,7 @@ public class TestLob extends TestBase { ...@@ -1242,6 +1242,7 @@ public class TestLob extends TestBase {
ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM TEST"); ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM TEST");
rs.next(); rs.next();
Object oa = rs.getObject(2); Object oa = rs.getObject(2);
assertEquals(TestLobObject.class.getName(), oa.getClass().getName());
TestLobObject a = (TestLobObject) oa; TestLobObject a = (TestLobObject) oa;
Object ob = rs.getObject("DATA"); Object ob = rs.getObject("DATA");
TestLobObject b = (TestLobObject) ob; TestLobObject b = (TestLobObject) ob;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论