fix IDEA-112499 for on demand imports

This commit is contained in:
Bas Leijdekkers
2014-03-07 15:32:12 +01:00
parent b52ec5f33f
commit 811fdf58e0
5 changed files with 51 additions and 24 deletions

View File

@@ -1,15 +0,0 @@
// "Add on demand static import for 'test.Bar'" "true"
package test;
import static test.Bar.*;
class Bar {
public static final void f() {}
}
public class Foo {
public static final void f(int i) {}
{
<caret>Bar.f(); // invoke 'add on demand static import' for Bar class here. The call is now done to other method.
}
}

View File

@@ -0,0 +1,9 @@
// "Add on demand static import for 'java.lang.Math'" "true"
package test;
import static java.lang.Math.*;
public class C {{
abs(1.0);
max(1, 2);
}}

View File

@@ -1,4 +1,4 @@
// "Add on demand static import for 'test.Bar'" "true"
// "Add on demand static import for 'test.Bar'" "false"
package test;
class Bar {

View File

@@ -0,0 +1,9 @@
// "Add on demand static import for 'java.lang.Math'" "true"
package test;
import static java.lang.Math.*;
public class C {{
abs(1.0);
<caret>Math.max(1, 2);
}}