|
From: | tk |
Subject: | [Bug-kawa] [bug #27239] illegalaccessexception on reflected method invocation |
Date: | Wed, 12 Aug 2009 22:56:29 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/530.19.2 (KHTML, like Gecko) Version/4.0.2 Safari/530.19 |
URL: <http://savannah.gnu.org/bugs/?27239> Summary: illegalaccessexception on reflected method invocation Project: Kawa Submitted by: huh Submitted on: Wed 12 Aug 2009 10:56:28 PM GMT Category: Code generation Severity: 3 - Normal Item Group: Run-time exception Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: 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 _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Wed 12 Aug 2009 10:56:28 PM GMT Name: kawa.patch Size: 636B By: huh <http://savannah.gnu.org/bugs/download.php?file_id=18566> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?27239> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |