test/langtools/tools/javac/6840059/T6840059.java
author bobv
Tue, 07 Nov 2017 10:30:53 -0500
changeset 47801 c7b50c23ea71
parent 47216 71c04702a3d5
permissions -rw-r--r--
8190283: Default heap sizing options select a MaxHeapSize larger than available physical memory in some cases Reviewed-by: tschatzl, sjohanss
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3556
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     1
/*
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 3556
diff changeset
     2
 * @test /nodynamiccopyright/
3556
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     3
 * @bug 6840059
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     4
 * @summary 6758789: Some method resolution diagnostic should be improved
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     5
 * @author Maurizio Cimadamore
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     6
 *
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     7
 * @compile/fail/ref=T6840059.out -XDrawDiagnostics T6840059.java
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     8
 */
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
     9
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    10
class T6840059 {
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    11
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    12
    T6840059(Integer x) {}
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    13
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    14
    void test() {
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    15
        new T6840059(""){};
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    16
    }
08a404c6ff0f 6840059: regression: javac silently crashes when resolving erroneous anonymous inner constructor
mcimadamore
parents:
diff changeset
    17
}