mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8187443: Forest Consolidation: Move files to unified layout
Reviewed-by: darcy, ihse
This commit is contained in:
parent
270fe13182
commit
3789983e89
56923 changed files with 3 additions and 15727 deletions
18
test/langtools/tools/javac/ClassIsAbstract.java
Normal file
18
test/langtools/tools/javac/ClassIsAbstract.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 4110534
|
||||
* @summary The fix for 1240831 broke the compiler. It should
|
||||
* report that class Abs cannot be instantiated.
|
||||
* @author turnidge
|
||||
*
|
||||
* @compile/fail/ref=ClassIsAbstract.out -XDrawDiagnostics ClassIsAbstract.java
|
||||
*/
|
||||
|
||||
abstract class Abs {
|
||||
}
|
||||
|
||||
class ClassIsAbstract {
|
||||
void method() {
|
||||
new Abs();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue