8187487: crash with classes with same binary name

Reviewed-by: jjg
This commit is contained in:
Vicente Romero 2018-01-02 16:35:04 -05:00
parent 1209c4bcb3
commit d1750de1fc
6 changed files with 68 additions and 3 deletions

View file

@ -0,0 +1,20 @@
/*
* @test /nodynamiccopyright/
* @bug 8187487
* @summary crash with duplicate class name
* @compile/fail/ref=CrashWithDuplicateClassNamesTest.out -XDrawDiagnostics CrashWithDuplicateClassNamesTest.java
*/
class CrashWithDuplicateClassNamesTest {
static class C1$C2 {}
static class C1 {
static class C2 {}
}
static class C3 {
static class C4 {}
}
static class C3$C4 {}
}