[
https://jira.jboss.org/jira/browse/JASSIST-76?page=com.atlassian.jira.plu...
]
Yanic Inghelbrecht updated JASSIST-76:
--------------------------------------
Attachment: stringbuilder_problem.zip
Test case to demonstrate the problem. Class Main loads & instruments class Client,
then executes Client's static test method.
IllegalAccessError for an instrumented client that uses
StringBuilder#charAt(int)
---------------------------------------------------------------------------------
Key: JASSIST-76
URL:
https://jira.jboss.org/jira/browse/JASSIST-76
Project: Javassist
Issue Type: Bug
Affects Versions: 3.10.0.GA
Environment: Javassist 3.10 (latest from cvs HEAD)
Version: 3.4.1, Build id: M20080911-1700, compiler compliance setting is 1.5
executing the code on Sun's JRE build 1.5.0_16-b02
platform is Win XP
Reporter: Yanic Inghelbrecht
Assignee: Shigeru Chiba
Priority: Blocker
Attachments: stringbuilder_problem.zip
Hi Chiba,
I'm getting an IllegalAccessError after instrumenting a client that calls
StringBuilder#charAt(int). Since I don't control what code gets instrumented by my
users and this is pretty common usage, it is a high priority for me.
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at test_stringbuilder_problem.Main.main(Main.java:34)
Caused by: java.lang.IllegalAccessError: tried to access class
java.lang.AbstractStringBuilder from class test_stringbuilder_problem.Client
at test_stringbuilder_problem.Client.test(Client.java:6)
... 5 more
I see that in a couple of days javassist's 10th birthday is coming up,
congratulations! I hope you'll find the time to celebrate!
As always, hoping for a quick fix. ;o)
Thanks in advance.
Best regards,
Yanic
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira