--- a/make/netbeans/nb-javac/nbproject/build-impl.xml
+++ a/make/netbeans/nb-javac/nbproject/build-impl.xml
@@ -170,7 +170,12 @@
-
+
+
+
+
+
+
@@ -827,7 +832,7 @@
-
+
@@ -839,7 +844,7 @@
-
+
--- a/make/netbeans/nb-javac/nbproject/genfiles.properties
+++ a/make/netbeans/nb-javac/nbproject/genfiles.properties
@@ -4,5 +4,5 @@
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=0dbef76c
-nbproject/build-impl.xml.script.CRC32=5523c4db
-nbproject/build-impl.xml.stylesheet.CRC32=cdba79fa@1.68.0.46
+nbproject/build-impl.xml.script.CRC32=732cb6b1
+nbproject/build-impl.xml.stylesheet.CRC32=5a01deb7@1.68.0.46
--- a/src/share/classes/com/sun/tools/javac/comp/Flow.java
+++ a/src/share/classes/com/sun/tools/javac/comp/Flow.java
@@ -1127,7 +1127,8 @@
ctypes = ctypes.append(exc);
if (types.isSameType(exc, syms.objectType))
continue;
- checkCaughtType(l.head.pos(), exc, thrownInTry, caughtInTry);
+ checkCaughtType(subClauses.size() > 1 ? ct.pos() : l.head.pos(),
+ exc, thrownInTry, caughtInTry);
caughtInTry = chk.incl(exc, caughtInTry);
}
}