--- a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Tue Aug 07 20:24:18 2012 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java Wed Aug 08 22:17:27 2012 +0530
@@ -308,9 +308,8 @@
return endPos(((JCSynchronized) tree).body);
else if (tree.hasTag(TRY)) {
JCTry t = (JCTry) tree;
- return endPos((t.finalizer != null)
- ? t.finalizer
- : t.catchers.last().body);
+ return endPos((t.finalizer != null) ? t.finalizer
+ : (t.catchers.nonEmpty() ? t.catchers.last().body : t.body));
} else
return tree.pos;
}