[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RFC: reflection access checks

From: Christian Thalinger
Subject: RFC: reflection access checks
Date: Sun, 15 Jan 2006 00:35:53 +0100


Today Michael told me about a CACAO bug filed to debian
(  While
checking what's wrong, i also checked sun's jvm and this is the
resulting stacktrace:

Exception in thread "main" java.lang.IllegalAccessException: Class TestReflect 
can not access a member of class priv.TestClass with modifiers "public"
        at sun.reflect.Reflection.ensureMemberAccess(
        at java.lang.reflect.Method.invoke(
        at TestReflect.main(

Seen this, i think we also should implement something like sun does in
ensureMemberAccess, in order that not all vm implementors have to write
the (more or less) same code.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]