From: SourceForge.net <no...@so...> - 2005-07-15 21:39:09
|
Bugs item #1239169, was opened at 2005-07-15 15:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1239169&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interactions Group: Would be nice if fixed ... Status: Open Resolution: None Priority: 5 Submitted By: R. Matt Barnett (rmbarnett) Assigned to: Nobody/Anonymous (nobody) Summary: Reflection in Interactions Initial Comment: Consider the following code executed in the interactions window. Welcome to DrJava. > class Test { public void wark() { } } > new Test().getClass().getDeclaredMethods()[0].invoke(new Test(), new Object[] { }) IllegalAccessException: Class koala.dynamicjava.interpreter.EvaluationVisitor can not access a member of class Test with modifiers "public" at sun.reflect.Reflection.ensureMemberAccess(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I don't know this is a problem with dynamicjava or the way the slave VM's security policy is set up, but I would expect the above code to execute... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1239169&group_id=44253 |