mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 13:15:25 +07:00
definitely initialized should check order (IDEA-181149)
missed for field initialization; similar to class initializers
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
class TestStaticBlockFinalInitializer {
|
||||
|
||||
public static final String BAR;
|
||||
public static final String XYZ_BEFORE;
|
||||
public static final String XYZ_BEFORE_1 = <error descr="Variable 'BAR' might not have been initialized">BAR</error>;
|
||||
|
||||
static {
|
||||
XYZ_BEFORE = <error descr="Variable 'BAR' might not have been initialized">BAR</error>;
|
||||
}
|
||||
|
||||
public static final String BAZ = (BAR = "Test");
|
||||
|
||||
public static final String XYZ_AFTER;
|
||||
public static final String XYZ_AFTER_1 = BAR;
|
||||
|
||||
static {
|
||||
XYZ_AFTER = BAR;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user