author | phh |
Sat, 30 Nov 2019 14:33:05 -0800 | |
changeset 59330 | 5b96c12f909d |
parent 49518 | d0ff431a596e |
permissions | -rw-r--r-- |
2984
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
1 |
/** |
3766 | 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=T6722234d_1.out -XDrawDiagnostics --diags=formatterOptions=where T6722234d.java |
d0ff431a596e
8198314: javac hidden options violate standard syntax for options
vromero
parents:
47216
diff
changeset
|
7 |
* @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics --diags=formatterOptions=where,simpleNames T6722234d.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 |
class T6722234d { |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
11 |
interface I1 {} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
12 |
interface I2 {} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
13 |
class A implements I1, I2 {} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
14 |
class B implements I1, I2 {} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
15 |
class Test { |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
16 |
<Z> Z m(Z z1, Z z2) { return null; } |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
17 |
void main(){ |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
18 |
A a = m(new A(), new B()); |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
19 |
} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
20 |
} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
21 |
} |