--- a/langtools/test/tools/javac/flow/tests/TestCaseIf.java Thu Sep 25 16:21:30 2014 -0700
+++ b/langtools/test/tools/javac/flow/tests/TestCaseIf.java Thu Sep 25 17:09:23 2014 -0700
@@ -58,4 +58,18 @@
}
o = "";
}
+
+ @AliveRange(varName="finalLocal", bytecodeStart=11, bytecodeLength=6)
+ @AliveRange(varName="used", bytecodeStart=13, bytecodeLength=4)
+ void m5(Object o) {
+ if (o != null) {
+ Object notUsed;
+ Object used;
+ if (o != null) {
+ final Object finalLocal = null;
+ used = null;
+ if (o == null) {}
+ }
+ }
+ }
}