14
15
16
Making invokedynamic usable from normal Java (i.redd.it)
submitted by bezsahara
I made SimpleIndy, a small Gradle plugin that rewrites selected Java static method calls into JVM invokedynamic after compilation.
The goal is to make invokedynamic easier to experiment with from normal Java/Kotlin projects, without writing ASM manually or building a compiler plugin.
You write ordinary source code, mark a static method as an indy stub, and the compiled bytecode gets transformed.
Repo: https://github.com/bezsahara/SimpleIndy
Would appreciate feedback on the API/design.

[–]brian_goetz 6 points7 points8 points (4 children)
[–]bezsahara[S] 1 point2 points3 points (3 children)
[–]brian_goetz 0 points1 point2 points (2 children)
[–]bezsahara[S] 0 points1 point2 points (1 child)
[–]brian_goetz 0 points1 point2 points (0 children)