3210b9650a
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
11 lines
311 B
Java
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 {
|
|
}
|