Javassist Enhancement fails when JPA Entity has an attribute named "handler"
Description
I have an Entity called HandlerError, refering to another Entity called Handler
The getter getHandler() causes following problem when I deploy the application to JBoss 6 AS M4
The same code works well in JBoss 6 AS M3.
JBoss 6 Release
Javassist dependency
M3
javassist-3.11.0.GA.jar
M4
javassist-3.12.1.GA.jar
M5
javassist-3.12.1.GA.jar
20101112
javassist-3.12.1.GA.jar
In between M3 and M4, following issue has been 'fixed': JASSIST-97 Not sure if it's related, but it looks close given the patch
Activity
Show:
hezh April 3, 2013 at 2:10 PM
Well, if it is of any use for someone ... i had the exact same problem with a getHandler method and upgrading to javassist-3.17.1-GA fixed the issue for me. Thx Steve for commenting the solution here.
Steve Ebersole June 6, 2012 at 3:42 PM
The Javassist team think this is resolved as of 3.16.0-GA. Could someone give that a try? Personally I do not see how their solution addresses the problem, but would be great to get confirmation one way or another...
Not sure what we can do here other than bring this to the attention of the Javassist developers and get them to fix this, then upgrade once that fix is released.
DavidD May 23, 2011 at 2:03 AM
Try latest Javassist jar (3.14.0-GA). It doesn't fix this problem. Back to cglib for me as I'm not changing my application code for this.
I have an Entity called
HandlerError
, refering to another Entity calledHandler
The getter
getHandler()
causes following problem when I deploy the application to JBoss 6 AS M4The same code works well in JBoss 6 AS M3.
JBoss 6 Release
Javassist dependency
M3
javassist-3.11.0.GA.jar
M4
javassist-3.12.1.GA.jar
M5
javassist-3.12.1.GA.jar
20101112
javassist-3.12.1.GA.jar
In between M3 and M4, following issue has been 'fixed': JASSIST-97
Not sure if it's related, but it looks close given the patch