[jboss-jira] [JBoss JIRA] Commented: (JASSIST-76) IllegalAccessError for an instrumented client that uses StringBuilder#charAt(int)

Yanic Inghelbrecht (JIRA) jira-events at lists.jboss.org
Thu Apr 9 04:39:23 EDT 2009


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

Yanic Inghelbrecht commented on JASSIST-76:
-------------------------------------------

This fixes it for me, both in the test case and the 'live' code where I encountered it.  Thank you very much!

> 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
>             Fix For: 3.11.0.GA
>
>         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

        



More information about the jboss-jira mailing list