Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-14 Thread Steve Ebersole
FYI http://opensource.atlassian.com/projects/hibernate/browse/HHH-4799 On Thu, 2010-01-14 at 13:23 -0600, Steve Ebersole wrote: > Also, you seem to have a quite elaborate functional test that simply > checks whether SerializationHelper is able to handle deserialing a class > from an "isolated clas

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-14 Thread Steve Ebersole
Also, you seem to have a quite elaborate functional test that simply checks whether SerializationHelper is able to handle deserialing a class from an "isolated classloader" via the SerializableType. Couldn't we just have a simple unit test that asserted exactly that? On Wed, 2010-01-13 at 20:25

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-14 Thread Steve Ebersole
Oddly it does that already. Its just that only Serailaizable.class is ever passed http://fisheye.jboss.org/browse/Hibernate/core/trunk/core/src/main/java/org/hibernate/Hibernate.java?r=17767#l233 This has to do with the "static" nature of the type system. On Thu, 2010-01-14 at 11:19 +0100, Emman

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-14 Thread Emmanuel Bernard
On 13 janv. 2010, at 19:10, Steve Ebersole wrote: >> >> So, getReturnedClass().getClassLoader() is not the answer here. > There is the only answer unfortunately. Really you'd want the Class of > the class implementing Serializable, but given how Hibernate's "type > system" works currently, that

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-13 Thread Galder Zamarreno
On 01/13/2010 07:10 PM, Steve Ebersole wrote: >> For completion, getReturnedClass().getClassLoader() will always return >> null because SerializableType is initialised with java.io.Serializable >> as returned class, and it's classloader returns null (quite likely cos >> it's a system class?). > h

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-13 Thread Steve Ebersole
> For completion, getReturnedClass().getClassLoader() will always return > null because SerializableType is initialised with java.io.Serializable > as returned class, and it's classloader returns null (quite likely cos > it's a system class?). http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Cl

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-13 Thread Galder Zamarreno
On 01/13/2010 05:31 PM, Galder Zamarreno wrote: > Hi all, > > In Hibernate trunk, the following tests are failing: > > In JBC 2LC provider: > MVCCIsolatedClassLoaderTest.testClassLoaderHandlingNamedQueryRegion > MVCCIsolatedClassLoaderTest.testClassLoaderHandlingStandardQueryCache > > In Infinispa

Re: [hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-13 Thread Steve Ebersole
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4786 On Wed, 2010-01-13 at 17:31 +0100, Galder Zamarreno wrote: > Hi all, > > In Hibernate trunk, the following tests are failing: > > In JBC 2LC provider: > MVCCIsolatedClassLoaderTest.testClassLoaderHandlingNamedQueryRegion > MVCCI

[hibernate-dev] Solution for failing Isolated query cache tests in Hibernate trunk

2010-01-13 Thread Galder Zamarreno
Hi all, In Hibernate trunk, the following tests are failing: In JBC 2LC provider: MVCCIsolatedClassLoaderTest.testClassLoaderHandlingNamedQueryRegion MVCCIsolatedClassLoaderTest.testClassLoaderHandlingStandardQueryCache In Infinispan 2LC provider: IsolatedClassLoaderTest.testClassLoaderHandlingN