This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: embedded window extension
Am Samstag, 17. Juli 2004 17:25 schrieb Eric Blake:
> This patch seems a little too simple for me. By default,
> reflection is supposed to follow the same accessibility rules the
> compiler would follow, meaning that the reflection should throw an
> IllegalAccessException unless you call setAccessible() on peerField
> to change the default. And calling setAccessible requires a
> security check, so you will have to set up a PrivelegedAction so
> that your call will always succeed. Did you just expose a bug in
> the reflection implementation?
Sorry, this was my first code really using reflection I ever wrote in
java. I might have been a little naive. Bryce McKinley told me I had
use setAccessible() ... Now I need to learn it the hard way. I dig
deeper into this and will provide a patch for this soon.
Michael