[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1585) An instrumented persistent class reckons that a referenced non persistent class is also instrumented

Igor Lobanov (JIRA) noreply at atlassian.com
Wed Sep 6 06:13:26 EDT 2006


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

Igor Lobanov commented on HHH-1585:
-----------------------------------

We just encountered the same problem, which is gone after switching to Hibernate 3.2CR4. So, it seems that fix made to HHH-1931 actually addresses current issue.

> An instrumented persistent class reckons that a referenced non persistent class is also instrumented
> ----------------------------------------------------------------------------------------------------
>
>          Key: HHH-1585
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1585
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.1.2
>  Environment: Java 1.4.2, Win2000
>     Reporter: Peter Schütt
>     Assignee: Scott Marlow
>  Attachments: InstrumentTask.patch
>
>
> I have a persistent class, which is instrumented because we use access by field.
> This persistent class refers to a non persistent class, which has only public fields:
> public class NonPersistentClass 
> {
>     public int field1;
>     public String field2;
> }
> This class is not declared in a mapping file and is not instrumented.
> ...
> The persistent class reckon that "NonPersistentClass" is instrumented.
> Decompiled code from Persistent class:
> NonPersistentClass obj = new NonPersistentClass();
> obj.$cglib_write_field1(1);
> ...
> String s = obj.$cglib_read_field2();
> This is a severe bug.

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