8012673: Nashorn's package name vs class name inferring logic is wrong

Reviewed-by: hannesw, jlaskey, attila
This commit is contained in:
Athijegannathan Sundararajan 2013-04-22 18:09:04 +05:30
parent 1334460008
commit 3722b6d434

View File

@ -170,7 +170,7 @@ public final class NativeJavaPackage extends ScriptObject {
Class<?> javaClass = null;
try {
javaClass = context.findClass(fullName);
} catch (final ClassNotFoundException e) {
} catch (final NoClassDefFoundError | ClassNotFoundException e) {
//ignored
}