langtools/src/share/classes/com/sun/tools/javac/tree/TreeInfo.java
changeset 13442 41b5b4736385
parent 13078 11d5e1c88864
child 14057 b4b0377b8dba
--- 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;
     }