[jboss-jira] [JBoss JIRA] (JASSIST-187) Hibernate + inherited entity with getId overrided + Different behavior in Win and Linux

Scott Marlow (JIRA) jira-events at lists.jboss.org
Thu Jul 18 15:46:27 EDT 2013


    [ https://issues.jboss.org/browse/JASSIST-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790846#comment-12790846 ] 

Scott Marlow commented on JASSIST-187:
--------------------------------------

I ran the test on Fedora 19 (Linux) and got the same output but I don't see how the test case is using Javassist.

{quote}
2013-07-18 15:32:11,973  INFO ru.zinin.service.SomeServiceImpl :44 - ID = null
2013-07-18 15:32:11,973 ERROR ru.zinin.service.SomeServiceImpl :46 - ID IS NULL!!!
{quote}

I don't see the hibernate.ejb.use_class_enhancer persistence unit hint in the persistence.xml or any (Hibernate) build time instrumentation used.

How is Javassist used in this test?  
                
> Hibernate + inherited entity with getId overrided + Different behavior in Win and Linux
> ---------------------------------------------------------------------------------------
>
>                 Key: JASSIST-187
>                 URL: https://issues.jboss.org/browse/JASSIST-187
>             Project: Javassist
>          Issue Type: Bug
>    Affects Versions: 3.16.0-GA, 3.16.1-GA, 3.17.0-GA
>         Environment: Windows 7 x64 Oracle JVM x86/x64 1.6.37 - no error
> Linux Ubuntu x64 Oracle JVM x64 1.6.37 - error
>            Reporter: Alexander Zinin
>            Assignee: Shigeru Chiba
>         Attachments: javassist-test.rar, javassist-test.zip
>
>
> It will be difficult to describe what the error.
> I will attach source code that reproduce error.
> If you have hibernate entity with overrided getId() method, in hibernate session this method returns null instead of correct value.
> Running on Windows:
> 2012-12-16 17:33:19,332  INFO ru.zinin.service.SomeServiceImpl :44 - ID = 1
> Running on Linux:
> 2012-12-16 17:41:47,772  INFO ru.zinin.service.SomeServiceImpl :44 - ID = null
> 2012-12-16 17:41:47,772 ERROR ru.zinin.service.SomeServiceImpl :46 - ID IS NULL!!!
> Bug appeared in version 3.16.0.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list