[Top][All Lists]

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

Re: RFC: reflection access checks

From: Dalibor Topic
Subject: Re: RFC: reflection access checks
Date: Sat, 14 Jan 2006 16:39:04 -0800
User-agent: Mutt/1.3.28i

On Sun, Jan 15, 2006 at 12:35:53AM +0100, Christian Thalinger wrote:
> Hi!
> 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.
> Comments?

I believe the reflection code would profit from getting a nice
VMInterfaceLift for the next release :)

I'd like to see it, since it's a security relevant part of the class
libraries, and currently everyone is implementing that in their own
fashion, I guess (and it's probably faster that way for some VMs). 

It'd best go in some reflection specific VMInterface, so that VMs that 
want or have to do it in native code can do it there.

dalibor topic

> _______________________________________________
> Classpath mailing list
> address@hidden

reply via email to

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