author | vromero |
Tue, 06 Sep 2016 17:04:43 -0700 | |
changeset 40835 | 6ab9ed1abc46 |
parent 39812 | 6272642715a1 |
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/ |
2984
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 6722234 |
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 |
40835
6ab9ed1abc46
8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags
vromero
parents:
39812
diff
changeset
|
6 |
* @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars T6722234a.java |
6ab9ed1abc46
8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags
vromero
parents:
39812
diff
changeset
|
7 |
* @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T6722234a.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 T6722234a<T extends String> { |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
11 |
<T extends Integer> void test(T t) { |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
12 |
m(t); |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
13 |
} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
14 |
void m(T t) {} |
e15ff3a34054
6722234: javac diagnostics need better integration with the type-system
mcimadamore
parents:
diff
changeset
|
15 |
} |