mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
allow refs to constants from inner classes in explicit constructor invocation: http://docs.oracle.com/javase/specs/jls/se7/html/jls-8.html#jls-8.8.7.1 (IDEA-99980)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class Test {
|
||||
public Test() {
|
||||
this(Const.CONST);
|
||||
}
|
||||
|
||||
public Test(int l) {}
|
||||
|
||||
private class Const {
|
||||
private static final int CONST = 42;
|
||||
}
|
||||
}
|
||||
@@ -361,4 +361,5 @@ public class LightAdvHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testThisBeforeSuper() throws Exception { doTest(false, false); }
|
||||
public void testExplicitConstructorInvocation() throws Exception { doTest(false, false); }
|
||||
public void testThisInInterface() throws Exception { doTest(false, false); }
|
||||
public void testInnerClassConstantReference() throws Exception { doTest(false, false); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user