commit | 4139a312cb9da6f0ece4b4da2a3ed980f18d4bff | [log] [tgz] |
---|---|---|
author | Narayan Kamath <narayan@google.com> | Thu Feb 16 15:04:59 2017 +0000 |
committer | Narayan Kamath <narayan@google.com> | Tue Feb 21 19:18:04 2017 +0000 |
tree | 01c46f974e7f95c8cda5460bb8b970dcf2797497 | |
parent | 4ddff9fdecadc83d710e65c80cdb67d301a41523 [diff] |
MethodHandles: Add tests for MethodHandles.reflectAs Also fix a corner case: reflectAs should throw a ClassCastException if we're reflecting to the wrong type, regardless of the type of LHS of the expression of which it's the RHS. Test: vogar --mode=host MethodHandlesTest Change-Id: I9d86e4e20fd9cac0eaa978cb10e000c5d2564d22