-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.1.3
-
sparc
-
solaris_2.5.1
Name: paC48320 Date: 09/30/97
I have a non public class (Implementation) that adheres to a public
interface (interf). I try to invoke through core reflection a method on an
instance of Implementation, method defined in Interf:
get(myClassObject).
This results in an IllegalAccessException. Had I handcoded it, it would
have worked (think of Vector.elements() and then calling hasMoreElements()
on it: non-public class, public method defined in interface, no exception)
Note that it seemed to work fine when the function was
get(java.lang.String) and not get(myClassObject), everything else being
equal...
company - Dassault Systemes , email - ###@###.###
======================================================================
- duplicates
-
JDK-4090460 (reflect) Method.invoke() -- can't call methods privately inherited.
-
- Closed
-