mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
7154966: CRs found to be in Fixed state with no test and no noreg- keyword
Reviewed-by: ksrini
This commit is contained in:
parent
48774216f2
commit
eacd2bcb72
5 changed files with 49 additions and 0 deletions
14
langtools/test/tools/javac/T7090499.java
Normal file
14
langtools/test/tools/javac/T7090499.java
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
* @test /nodynamiccopyright/
|
||||||
|
* @bug 7090499
|
||||||
|
* @summary missing rawtypes warnings in anonymous inner class
|
||||||
|
* @compile/ref=T7090499.out -Xlint:rawtypes -XDrawDiagnostics T7090499.java
|
||||||
|
*/
|
||||||
|
|
||||||
|
class T7090499<X> {
|
||||||
|
{
|
||||||
|
new Object() {
|
||||||
|
T7090499 x;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
2
langtools/test/tools/javac/T7090499.out
Normal file
2
langtools/test/tools/javac/T7090499.out
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
T7090499.java:11:13: compiler.warn.raw.class.use: T7090499, T7090499<X>
|
||||||
|
1 warning
|
11
langtools/test/tools/javac/T7120463.java
Normal file
11
langtools/test/tools/javac/T7120463.java
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
/*
|
||||||
|
* @test /nodynamiccopyright/
|
||||||
|
* @bug 7120463
|
||||||
|
* @summary Fix method reference parser support in order to avoid ambiguities
|
||||||
|
* @compile/fail/ref=T7120463.out -XDrawDiagnostics T7120463.java
|
||||||
|
*/
|
||||||
|
|
||||||
|
class T7120463 {
|
||||||
|
void test() { that(i < len, "oopmap"); }
|
||||||
|
void that(int i, String s) { };
|
||||||
|
}
|
3
langtools/test/tools/javac/T7120463.out
Normal file
3
langtools/test/tools/javac/T7120463.out
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
T7120463.java:9:24: compiler.err.cant.resolve.location: kindname.variable, i, , , (compiler.misc.location: kindname.class, T7120463, null)
|
||||||
|
T7120463.java:9:28: compiler.err.cant.resolve.location: kindname.variable, len, , , (compiler.misc.location: kindname.class, T7120463, null)
|
||||||
|
2 errors
|
19
langtools/test/tools/javac/T7126754.java
Normal file
19
langtools/test/tools/javac/T7126754.java
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
/*
|
||||||
|
* @test /nodynamiccopyright/
|
||||||
|
* @bug 7126754
|
||||||
|
* @summary Generics compilation failure casting List<? extends Set...> to List<Set...>
|
||||||
|
* @compile T7126754.java
|
||||||
|
*/
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
|
public class T7126754 {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
List<Set<? extends String>> a = null;
|
||||||
|
List<? extends Set<? extends String>> b = a;
|
||||||
|
|
||||||
|
List<? extends Set<? extends String>> c = null;
|
||||||
|
List<Set<? extends String>> d = (List<Set<? extends String>>)c;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue