8012673: Nashorn's package name vs class name inferring logic is wrong
authorsundar
Mon, 22 Apr 2013 18:09:04 +0530
changeset 17235 b08e7199633f
parent 17234 7eda96a52c27
child 17236 75779a53c6a9
8012673: Nashorn's package name vs class name inferring logic is wrong Reviewed-by: hannesw, jlaskey, attila
nashorn/src/jdk/nashorn/internal/runtime/NativeJavaPackage.java
--- a/nashorn/src/jdk/nashorn/internal/runtime/NativeJavaPackage.java	Sat Apr 20 08:54:13 2013 -0300
+++ b/nashorn/src/jdk/nashorn/internal/runtime/NativeJavaPackage.java	Mon Apr 22 18:09:04 2013 +0530
@@ -170,7 +170,7 @@
         Class<?> javaClass = null;
         try {
             javaClass = context.findClass(fullName);
-        } catch (final ClassNotFoundException e) {
+        } catch (final NoClassDefFoundError | ClassNotFoundException e) {
             //ignored
         }