mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8187487: crash with classes with same binary name
Reviewed-by: jjg
This commit is contained in:
parent
1209c4bcb3
commit
d1750de1fc
6 changed files with 68 additions and 3 deletions
|
@ -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 {}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue