mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8078473: javac diamond finder crashes when used to build java.base module
Reviewed-by: mcimadamore
This commit is contained in:
parent
f2ee4e4240
commit
e57ef90dd9
8 changed files with 62 additions and 6 deletions
|
@ -3,11 +3,11 @@ T6939780.java:22:28: compiler.warn.diamond.redundant.args
|
|||
T6939780.java:23:28: compiler.warn.diamond.redundant.args.1: T6939780.Foo<java.lang.Integer>, T6939780.Foo<java.lang.Number>
|
||||
T6939780.java:24:33: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:25:28: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:26:28: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:26:28: compiler.warn.diamond.redundant.args.1: T6939780.Foo<java.lang.Integer>, T6939780.Foo<java.lang.Number>
|
||||
T6939780.java:30:19: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:31:19: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:32:19: compiler.warn.diamond.redundant.args.1: T6939780.Foo<java.lang.Integer>, T6939780.Foo<java.lang.Number>
|
||||
T6939780.java:33:19: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:34:19: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:35:19: compiler.warn.diamond.redundant.args
|
||||
T6939780.java:35:19: compiler.warn.diamond.redundant.args.1: T6939780.Foo<java.lang.Integer>, T6939780.Foo<java.lang.Number>
|
||||
12 warnings
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8078473
|
||||
* @summary javac diamond finder crashes when used to build java.base module
|
||||
* @compile/ref=T8078473.out T8078473.java -XDrawDiagnostics -XDfind=diamond
|
||||
*/
|
||||
|
||||
class T8078473<P, Q> {
|
||||
|
||||
static class C<T, U> {
|
||||
C(T8078473<?, ?> p) {}
|
||||
}
|
||||
|
||||
{
|
||||
new C<Q, Q>(this) {};
|
||||
new C<Q, Q>(this);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
T8078473.java:15:14: compiler.warn.diamond.redundant.args.1: T8078473.C<Q,Q>, T8078473.C<java.lang.Object,java.lang.Object>
|
||||
T8078473.java:16:14: compiler.warn.diamond.redundant.args.1: T8078473.C<Q,Q>, T8078473.C<java.lang.Object,java.lang.Object>
|
||||
2 warnings
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8078473
|
||||
* @summary javac diamond finder crashes when used to build java.base module
|
||||
* @compile/ref=T8078473_2.out T8078473_2.java -XDrawDiagnostics -XDfind=diamond
|
||||
*/
|
||||
|
||||
package java.util.stream;
|
||||
|
||||
class T8078473_2<P, Q> {
|
||||
|
||||
static class C<T, U> {
|
||||
C(T8078473_2<?, ?> p) {}
|
||||
}
|
||||
|
||||
{
|
||||
new C<Q, Q>(this) {};
|
||||
new C<Q, Q>(this);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
T8078473_2.java:17:13: compiler.warn.diamond.redundant.args.1: java.util.stream.T8078473_2.C<Q,Q>, java.util.stream.T8078473_2.C<java.lang.Object,java.lang.Object>
|
||||
T8078473_2.java:18:13: compiler.warn.diamond.redundant.args.1: java.util.stream.T8078473_2.C<Q,Q>, java.util.stream.T8078473_2.C<java.lang.Object,java.lang.Object>
|
||||
2 warnings
|
Loading…
Add table
Add a link
Reference in a new issue