test/langtools/tools/javac/Diagnostics/6722234/T6722234b.java
author vromero
Tue, 03 Apr 2018 23:58:52 -0400
changeset 49518 d0ff431a596e
parent 47216 71c04702a3d5
permissions -rw-r--r--
8198314: javac hidden options violate standard syntax for options Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2984
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
     1
/**
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 2984
diff changeset
     2
 * @test /nodynamiccopyright/
30014
fc1f2b200c1f 8078024: javac, several incorporation steps are silently failing when an error should be reported
vromero
parents: 3766
diff changeset
     3
 * @bug     6722234 8078024
2984
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
     4
 * @summary javac diagnostics need better integration with the type-system
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
     5
 * @author  mcimadamore
49518
d0ff431a596e 8198314: javac hidden options violate standard syntax for options
vromero
parents: 47216
diff changeset
     6
 * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics --diags=formatterOptions=simpleNames T6722234b.java
d0ff431a596e 8198314: javac hidden options violate standard syntax for options
vromero
parents: 47216
diff changeset
     7
 * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics --diags=formatterOptions=simpleNames,where T6722234b.java
2984
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
     8
 */
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
     9
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    10
import java.util.*;
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    11
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    12
class T6722234b {
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    13
    <T> void m(List<T> l1, List<T> l2) {}
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    14
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    15
    void test(List<? extends T6722234b> list) {
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    16
        m(list, list);
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    17
    }
e15ff3a34054 6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff changeset
    18
}