bugKawa - Bugs: bug #27239, illegalaccessexception on...


bug #27239: illegalaccessexception on reflected method invocation

Submitted by:  tk <huh>
Submitted on:  Wed 12 Aug 2009 10:56:28 PM UTC  
Category: Code generationSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 12 Aug 2009 10:56:28 PM UTC, original submission:

a relatively recent change caused some of my code to break
with IllegalAccessExceptions when method calls use reflection,

java.lang.IllegalAccessException: Class gnu.expr.PrimProcedure can not access a member of class foo with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
at java.lang.reflect.Method.invoke(Method.java:588)
at gnu.expr.PrimProcedure.apply(PrimProcedure.java:272)

it's not clear that the attached patch is correct (it simply
puts method.setAccessible(true) ahead of the invocation
in PrimProcedure.java). but it is effective.

diff is against svn revision 6314

tk <huh>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #18566:  kawa.patch added by huh (636B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by huh (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 12 Aug 2009 10:56:28 PM UTChuhAttached File-=>Added kawa.patch, #18566

    Back to the top

    Powered by Savane 3.1-cleanup1