Valhalla reflection API - first stab (original) (raw)

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Wed Jun 15 17:19:34 UTC 2016


Hi, I've just pushed a new Valhalla-centric reflection API; the main goal of this API is to allow programmers to reflect over the contents of the new generic classfile, as well as to programmatically create class/method parameterizations and perform dynamic operations (method calls, field access). More information about this API can be found at in the javadoc of the root of the hierarchy - available here:

http://cr.openjdk.java.net/~mcimadamore/x-reflection/valhalla/reflect/runtime/RuntimeMirror.html

There's also a pretty comprehensive end to end test showcasing many of the API features:

http://hg.openjdk.java.net/valhalla/valhalla/jdk/file/0f7a9b8602e5/test/valhalla/test/valhalla/reflect/runtime/SimpleReflectionTest.java

Note: this is just an initial API round/prototype. As such we didn't put too much effort on things like naming conventions etc. and we focussed instead on the set of features we would like this new API to have.

We are obviously interested of any usability issue/bugs you encounter when using/learning this API!

Cheers Maurizio



More information about the valhalla-dev mailing list