IDEA-125947 not initialized final field should not be raised on any refs from inner classes

This commit is contained in:
Anna Kozlova
2014-06-05 15:03:27 +04:00
parent 62f7acd80c
commit 35005bc88e
2 changed files with 12 additions and 2 deletions

View File

@@ -236,9 +236,19 @@ class IDEA100237 {
}
final Object baz = new Object() {
final int qux = <error descr="Variable 'bar' might not have been initialized">bar</error>.hashCode() + 1;
final int qux = bar.<error descr="Cannot resolve method 'hashCode()'">hashCode</error>() + 1;
};
}
static class Outer {
final String a;
class Inner {
String b = a;
}
Outer() {
a = "";
}
}
}
class StaticInitializerUsedInAnotherStaticField {