8012673: Nashorn's package name vs class name inferring logic is wrong
Reviewed-by: hannesw, jlaskey, attila
--- 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
}