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

Frank Grimes (JIRA) noreply at atlassian.com
Thu Aug 17 17:36:19 EDT 2006


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

Frank Grimes updated HHH-1740:
------------------------------

    Attachment: TestLazyManyToOne-Branch_3_2.diff

I corrected it and now have it failing on hibernate-3.1.3 but passing with the latest for hibernate-3.2.x.
FYI, the assertion that fails on hibernate-3.1.3 is the following:

Assert.assertFalse("HHH-1740: many-to-one no-proxy load should not have been triggered by load of many-to-one proxy value", Hibernate.isPropertyInitialized(hia, "folder") );

I'm attaching my diff for org.hibernate.test.instrument.cases.TestLazyManyToOne in case it's testing anything you're missing and you want to incorporate it into the test suite.

> 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, Hibernate3-Branch_3_2.diff, TestLazyManyToOne-Branch_3_2.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