[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1740) Build-time instrumentation breaks lazy="proxy"

Frank Grimes (JIRA) noreply at atlassian.com
Fri Aug 11 17:34:19 EDT 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740?page=comments#action_23907 ] 

Frank Grimes commented on HHH-1740:
-----------------------------------

I checked out the latest from SVN TRUNK and applied my changes as outlined in HHH-1740.diff but the problem is still present.
Could this issue be re-opened until this is resolved?

FYI, I had to apply the following changes just to get buildtime tests to run (There was a NullPointerException being thrown):

******************************************************************************************************************************
Index: D:/eclipse-3.1/workspaces/invex-stratix/Hibernate3/test/org/hibernate/test/instrument/buildtime/InstrumentTest.java
===================================================================
--- D:/eclipse-3.1/workspaces/invex-stratix/Hibernate3/test/org/hibernate/test/instrument/buildtime/InstrumentTest.java	(revision 10252)
+++ D:/eclipse-3.1/workspaces/invex-stratix/Hibernate3/test/org/hibernate/test/instrument/buildtime/InstrumentTest.java	(working copy)
@@ -25,31 +25,52 @@
 	}
 
 	public void testDirtyCheck() {
-		new TestDirtyCheckExecutable().execute();
+		TestDirtyCheckExecutable exec = new TestDirtyCheckExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testFetchAll() throws Exception {
-		new TestFetchAllExecutable().execute();
+		TestFetchAllExecutable exec = new TestFetchAllExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testLazy() throws Exception {
-		new TestLazyExecutable().execute();
+		TestLazyExecutable exec = new TestLazyExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testLazyManyToOne() {
-		new TestLazyManyToOneExecutable().execute();
+		TestLazyManyToOneExecutable exec = new TestLazyManyToOneExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testSetFieldInterceptor() {
-		new TestInjectFieldInterceptorExecutable().execute();
+		TestInjectFieldInterceptorExecutable exec = new TestInjectFieldInterceptorExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testPropertyInitialized() {
-		new TestIsPropertyInitializedExecutable().execute();
+		TestIsPropertyInitializedExecutable exec = new TestIsPropertyInitializedExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	public void testManyToOneProxy() {
-		new TestManyToOneProxyExecutable().execute();
+		TestManyToOneProxyExecutable exec = new TestManyToOneProxyExecutable();
+		exec.prepare();
+		exec.execute();
+		exec.complete();
 	}
 
 	protected String[] getMappings() {
******************************************************************************************************************************


Also, the runtime tests are all failing with the following errors:
	Caused an ERROR
(class: org/hibernate/test/instrument/runtime/AbstractTransformingClassLoaderInstrumentTestCase$1, method: <init> signature: (Lorg/hibernate/test/instrument/runtime/AbstractTransformingClassLoaderInstrumentTestCase;)V) Expecting to find object/array on staP?
java.lang.VerifyError: (class: org/hibernate/test/instrument/runtime/AbstractTransformingClassLoaderInstrumentTestCase$1, method: <init> signature: (Lorg/hibernate/test/instrument/runtime/AbstractTransformingClassLoaderInstrumentTestCase;)V) Expecting to find object/array on staP?
	at org.hibernate.test.instrument.runtime.AbstractTransformingClassLoaderInstrumentTestCase.buildIsolatedClassLoader(AbstractTransformingClassLoaderInstrumentTestCase.java:19)
	at org.hibernate.test.AbstractClassLoaderIsolatedTestCase.setUp(AbstractClassLoaderIsolatedTestCase.java:16)

> Build-time instrumentation breaks lazy="proxy"
> ----------------------------------------------
>
>          Key: HHH-1740
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1740
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.1.3, 3.2.0 cr1, 3.2.0.cr2
>     Reporter: Frank Grimes
>     Assignee: Steve Ebersole
>     Priority: Critical
>      Fix For: 3.2.0.ga
>  Attachments: 312Document.class, Document.class, HHH-1740.diff
>
>
> I have a mapping that contains a many-to-one lazy="proxy".
> This alone works fine: I see $$EnhancerByCGLIB$$ as the type when I do a load
> Once I add a lazy property to the mapping and do build-time cglib enhancement, it breaks.
> Not only is the lazy property listed in $CGLIB_READ_WRITE_CALLBACK, but also my lazy="proxy" association. (i.e. no more proxy object)
> This works fine in hibernate-3.1.2.
> This was originally brought up here: http://forums.hibernate.org/viewtopic.php?t=958881
> Please let me know if more info or a test case is needed.

-- 
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