Author: stliu
Date: 2009-11-14 07:55:12 -0500 (Sat, 14 Nov 2009)
New Revision: 17980
Modified:
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/type/SerializableToBlobType.java
Log:
JBPAPP-906 HHH-2990 - Bad usage of ClassLoader.loadClass() for Java6 in
SerializationHelper - deserialization bottleneck for arrays
Modified:
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/type/SerializableToBlobType.java
===================================================================
---
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/type/SerializableToBlobType.java 2009-11-14
03:45:27 UTC (rev 17979)
+++
annotations/branches/v3_3_1_GA_CP/src/java/org/hibernate/type/SerializableToBlobType.java 2009-11-14
12:55:12 UTC (rev 17980)
@@ -65,8 +65,8 @@
return SerializationHelper.serialize( (Serializable) object );
}
- private static Object fromBytes(byte[] bytes) throws SerializationException {
- return SerializationHelper.deserialize( bytes );
+ private Object fromBytes(byte[] bytes) throws SerializationException {
+ return SerializationHelper.deserialize( bytes, getReturnedClass().getClassLoader() );
}
public void set(PreparedStatement st, Object value, int index, SessionImplementor
session) throws SQLException {
Show replies by date