java.lang.invoke vs java.lang.reflect, redundancy and security

Eric Bodden eric.bodden at ec-spride.de
Thu Jan 17 02:18:10 PST 2013


Hello.

> The two APIs are different in that security checks are performed when
> looking up method handles but not when calling them, while security checks
> are performed at every invocation of a reflected method or field. I'm sure
> some security infrastructure can be shared by the two APIs, but I'm not
> sure how much is in the current implementation.

Oh, that's quite interesting to know.

Thanks!

Eric


More information about the mlvm-dev mailing list