mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
type migration: fix AIOOBE for method with generic varargs migration (EA-87127) update (IDEA-CR-19211)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
Types:
|
||||
PsiField:migrationField : Test<java.lang.Short>
|
||||
PsiMethodCallExpression:migrationField.method(x1, x2) : void
|
||||
PsiReferenceExpression:migrationField : Test<java.lang.Short>
|
||||
|
||||
Conversions:
|
||||
migrationField.method(x1, x2) -> $
|
||||
x1 -> $
|
||||
x2 -> $
|
||||
|
||||
New expression type changes:
|
||||
Fails:
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test<X> {
|
||||
private static Test<Short> migrationField;
|
||||
|
||||
private static void m(Short x1, Short x2) {
|
||||
migrationField.method(x1, x2);
|
||||
}
|
||||
|
||||
void method(X... xes) {
|
||||
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
class Test<X> {
|
||||
private static Test<Number> migrationField;
|
||||
|
||||
private static void m(Short x1, Short x2) {
|
||||
migrationField.method(x1, x2);
|
||||
}
|
||||
|
||||
void method(X... xes) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user