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

 
 

bug #27239: illegalaccessexception on reflected method invocation

Submitter:  tk <huh>
Submitted:  Wed 12 Aug 2009 10:56:28 PM UTC
   
 
Category:  Code generation Severity:  3 - Normal
Item Group:  Run-time exception Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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,
e.g.

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 Files:
   
   
Comment:
   

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
  • -email is unavailable- added by huh (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-08-12 huh Attached File- Added kawa.patch, #18566

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code