On Wed, 5 May 2021 06:07:23 GMT, Srikanth Adayapalam <sadayapa...@openjdk.org> 
wrote:

>> 8244146: javac changes for JEP 306
>
> test/langtools/tools/javac/annotations/typeAnnotations/classfile/NestedLambdasCastedTest.java
>  line 34:
> 
>> 32:  * @build toolbox.ToolBox toolbox.JavapTask
>> 33:  * @run compile -source 16 -g NestedLambdasCastedTest.java
>> 34:  * @run main NestedLambdasCastedTest
> 
> To massage the existing tests at some places you are passing -source 16 and 
> at others -release 16. Is there some nuance behind it ?

Yes; --release 16 is generally preferred as a cleaner, more complete way of 
requesting 16-ness from javac. However, use of features like the @modules tag 
in jtreg can preclude use from --release because of interactions like:

    exporting a package from system module jdk.jdeps is not allowed with 
--release

-------------

PR: https://git.openjdk.java.net/jdk/pull/3831

Reply via email to