3 ms·
JDK11 introduces CONSTANT_dynamic[0] so anything expressed by that type descriptor string should also be expressible as a call to a bootstrap method at link tim
by kjeetgill 8y ago
JDK11 introduces CONSTANT_dynamic[0] so anything expressed by that type descriptor string should also be expressible as a call to a bootstrap method at link time.
I think. Never played with it myself but here is a "bestiary"[1] of possibilities that CONSTANT_dynamic already opens up.
[0]: http://openjdk.java.net/jeps/309 http://openjdk.java.net/jeps/309
[1]: https://github.com/forax/exotic https://github.com/forax/exotic
- kodablah 8y agoSure, or really just bury the method call/descriptor as an arg. It's not that much different than annotations.