jdk-24/langtools/test/tools/javac/options/release/ReleaseOption.java
Jan Lahoda 3210b9650a 8072480: javac should support compilation for a specific platform version
Adding a new javac option for compiling for JDK N: -release N; including history data for previous version of JDK.

Co-authored-by: Erik Joelsson <erik.joelsson@oracle.com>
Co-authored-by: Jonathan Gibbons <jonathan.gibbons@oracle.com>
Reviewed-by: erikj, ihse, jjg, mcimadamore, mr
2015-07-01 09:51:48 +02:00

11 lines
311 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8072480
* @summary Verify that javac rejects Java 8 program with -release 7
* @compile ReleaseOption.java
* @compile/fail/ref=ReleaseOption-release7.out -XDrawDiagnostics -release 7 ReleaseOption.java
*/
interface ReleaseOption extends java.util.stream.Stream {
}