mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
decode: don't qualify 'ambiguous' reference if qualifier is available through inheritance (IDEA-142703)
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package p1;
|
||||
public class StaticMethod {
|
||||
public static int bar() {return 1;}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package p2;
|
||||
import p1.StaticMethod;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
public class Test extends BigDecimal {
|
||||
Test() {super(0);}
|
||||
void test() {
|
||||
valueOf(0);
|
||||
valueOf(StaticMethod.bar());
|
||||
valueOf(StaticMethod.bar());
|
||||
}
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package p1;
|
||||
public class StaticMethod {
|
||||
public static int bar() {return 1;}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package p1;
|
||||
import java.math.BigDecimal;
|
||||
public class Test extends BigDecimal {
|
||||
Test() {super(0);}
|
||||
void test() {
|
||||
valueOf(0);
|
||||
valueOf(StaticMethod.bar());
|
||||
valueOf(StaticMethod.bar());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user