It seems that Gradle javaCompile task doesn’t take compile option -parameters into count.
Here is related post by me.
JDK8u60 fixed bug of javac option -parameters, and JDK8u60’s javac can produce byte code which can retrieve lambda parameter’s name by reflection. But classes compiled by Gradle, cannot retrieve lambda parameter.
Hi @Shinya_Mochida, I replied to your other topic. This isn’t a bug. Both the main and test sources need to be compiled with -parameters for your example to work.
I’m going to close this topic, please let me know if you have any questions on the old topic.