mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8310314: Misplaced "unnamed classes are a preview feature and are disabled by default" error
Reviewed-by: jlaskey
This commit is contained in:
parent
96a7db7b3c
commit
79069c5e74
3 changed files with 16 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
/**
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8310314
|
||||
* @summary Ensure proper error position for the "unnamed classes not supported" error
|
||||
* @compile/fail/ref=SourceLevelErrorPosition.out -XDrawDiagnostics SourceLevelErrorPosition.java
|
||||
*/
|
||||
class Nested {}
|
||||
void main() {
|
||||
System.err.println("");
|
||||
}
|
||||
void test() {
|
||||
System.err.println("");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue