import static: insert single-static-import if multiple on-demand imports with corresponding constants are available leading to ambiguity reference

This commit is contained in:
Anna.Kozlova
2016-11-25 09:56:52 +01:00
parent 83bb640734
commit 261e309dd7
3 changed files with 57 additions and 5 deletions
@@ -0,0 +1,20 @@
// "Import static constant..." "true"
package foo;
import static foo.A.*;
import static foo.A.CONST;
import static foo.B.*;
public class X {
{
CONST;
}
}
class A {
public static Object CONST = null;
}
class B {
public static Object CONST = null;
}
@@ -0,0 +1,19 @@
// "Import static constant..." "true"
package foo;
import static foo.A.*;
import static foo.B.*;
public class X {
{
CON<caret>ST;
}
}
class A {
public static Object CONST = null;
}
class B {
public static Object CONST = null;
}