[
https://issues.jboss.org/browse/JASSIST-161?page=com.atlassian.jira.plugi...
]
Joao Carvalho edited comment on JASSIST-161 at 3/20/12 5:22 AM:
----------------------------------------------------------------
EDIT: I have managed to track the code that's on the method being renamed, that is
causing the exception (I've been trying different combinations until I found the
one.)
The method being processed has the code
{{new FileRemoveLog(this, UserView.getCurrentUser(), file.getFilename(),
file.getDisplayName() != null ? file.getDisplayName() : file.getFilename(),
BundleUtil.getLocalizedNamedFroClass(file.getClass()));}}
In which the FileRemoveLog constructors signature is {{public
FileRemoveLog(WorkflowProcess process, User person, String... argumentsDescription)}}
However, changing the code to the following will no longer raise the exception.
{{ new FileRemoveLog(this, UserView.getCurrentUser(), file.getFilename(),
/*
* file.getDisplayName() != null ? file.getDisplayName() :
* file.getFilename()
*/
BundleUtil.getLocalizedNamedFroClass(file.getClass()));}}
was (Author: jpcarvalho):
The actual test case isn't very relevant to this problem, we've tried with
several versions of the injected method, like the original body, just printing something
to System.out, empty body, all of them raise that exception.
The injection code has been in production for quite a while, and simply renames the
method, and wrapping a call to that method...
java.lang.ClassFormatException in certain cases with Java 7
-----------------------------------------------------------
Key: JASSIST-161
URL:
https://issues.jboss.org/browse/JASSIST-161
Project: Javassist
Issue Type: Bug
Affects Versions: 3.16.1-GA
Environment: Oracle Java 7 on Mac OSX
Reporter: Joao Carvalho
Assignee: Shigeru Chiba
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira