mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-151190 Change class signature doesn't support complicated bounds
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
class <caret>C {}
|
||||
|
||||
class Some implements Runnable, Serializable {
|
||||
void m() {
|
||||
C c = new C();
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import java.io.Serializable;
|
||||
|
||||
class C<T extends Runnable & Serializable> {}
|
||||
|
||||
class Some implements Runnable, Serializable {
|
||||
void m() {
|
||||
C<Some> c = new C<Some>();
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
|
||||
class B<T extends java.util.Collection> {}
|
||||
class B<T extends Collection> {}
|
||||
|
||||
public void someMethod() {
|
||||
B<List> b = new B<List>();
|
||||
|
||||
+2
-1
@@ -1,8 +1,9 @@
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class Main {
|
||||
|
||||
class B<T extends java.util.Collection, X extends Long> {}
|
||||
class B<T extends Collection, X extends Long> {}
|
||||
|
||||
public void someMethod() {
|
||||
B<List, Long> b = new B<>();
|
||||
|
||||
Reference in New Issue
Block a user