[e-lang] Notes from latest Joe-E meeting

Tyler Close tyler.close at gmail.com
Sat Apr 28 15:07:07 EDT 2007


On 4/28/07, Mark S. Miller <markm at cs.jhu.edu> wrote:
> Upgrading Horton to this was surprisingly painless. Thanks!
>
> Some changes I needed to make to the taming database:
>
> In java.lang.reflect.Field.taming I added
>
>      get(java.lang.Object)
>
> Is this safe?

No.

> Was it previously there and removed?

Yes.

> Was it removed for a reason?

Yes

> If so, is there a safe way to get the value of a dynamically
> discovered field?

Deflection.get()

The Deflection methods check to see that the declaring class is also
public before forwarding the invocation. My old reflection API
addressed this issue by filtering out public members declared by
non-public classes. It did this by finding the overridden method in
the public super type. Since we couldn't reach consensus on the
behaviour of this reflection API, I addressed this issue in the
Deflection implementation.

> In java.lang.AccessibleObject.taming, I changed
>
>      isAnnotationPresent(java.lang.Class)
>
>
> to
>
>      isAnnotationPresent(java.lang.Class<? extends
> java.lang.annotation.Annotation>)
>
> I think this was just a bug that I had privately fixed before but failed to
> report. Sorry.

Ok, I add this to my taming database.

Tyler

-- 
The web-calculus is the union of REST and capability-based security:
http://www.waterken.com/dev/Web/

Name your trusted sites to distinguish them from phishing sites.
https://addons.mozilla.org/firefox/957/


More information about the e-lang mailing list