changeset 204:ead94bc57939

8012673: Nashorn's package name vs class name inferring logic is wrong Reviewed-by: hannesw, jlaskey, attila
author sundar
date Mon, 22 Apr 2013 18:09:04 +0530
parents e599a1cad89a
children 812e9cc70320
files src/jdk/nashorn/internal/runtime/NativeJavaPackage.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk/nashorn/internal/runtime/NativeJavaPackage.java	Sat Apr 20 08:54:13 2013 -0300
+++ b/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
         }