Thanks for the clarification Mitch, I'm glad I wasn't dreaming it :-)

So the fact that isAccessible() returns true doesn't necessarily mean
that the field can be set.
That makes me rethink about how I should recreate that situation.

By the way, I'm downloading the latest source code for GAE, thanks for
the update!

E.

On Feb 22, 11:29 am, Mitch Rudominer <[email protected]> wrote:
> Emanuele,
>
> The behavior you are seeing is actually not a bug in App Engine but rather
> an unexpected behavior in Java itself. If you try the experiment in Java
> code running outside of App Engine you will see the same behavior.
>
> The source code for java.lang.reflect.AccessibleObject explains the
> situation:
>
>     // Indicates whether language-level access checks are overridden    // by 
> this object. Initializes to "false". This field is used by    // Field, 
> Method, and Constructor.    boolean override;
>      public boolean isAccessible() {
>
>         return override;       }
>
> The name "isAccessible" is misleading. The method actually returns whether 
> accessibility has been overridden to true.
>
> -Mitch

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to