Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8295176: some langtools test pollutes source tree
Reviewed-by: sadayapalam, darcy, vromero
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
test/langtools/tools/javac/options/release/ReleaseOption.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
/** | ||
* @test /nodynamiccopyright/ | ||
* @bug 8072480 | ||
* @summary Verify that javac rejects Java 8 program with --release 7 | ||
* @summary Verify that javac rejects Java 17 program with --release 11 | ||
* @compile ReleaseOption.java | ||
* @compile/fail/ref=ReleaseOption.out -XDrawDiagnostics --release 11 ReleaseOption.java | ||
*/ | ||
|
||
interface ReleaseOption extends java.util.stream.Stream { | ||
interface ReleaseOption extends java.util.random.RandomGenerator { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ReleaseOption.java:9:49: compiler.err.doesnt.exist: java.util.random | ||
1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71aa821
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues