< prev index next >

src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/Context.java

Print this page

        

*** 346,356 **** @Override public Class<?> install(final String className, final byte[] bytecode) { try { ANONYMOUS_INSTALLED_SCRIPT_COUNT.increment(); // Workaround: define it as a hidden nestmate so that the hostLookup can find private members ! return hostLookup.defineHiddenClass(bytecode, true, ClassOption.NESTMATE, ClassOption.WEAK).lookupClass(); } catch (IllegalAccessException e) { throw new InternalError(e); } } --- 346,356 ---- @Override public Class<?> install(final String className, final byte[] bytecode) { try { ANONYMOUS_INSTALLED_SCRIPT_COUNT.increment(); // Workaround: define it as a hidden nestmate so that the hostLookup can find private members ! return hostLookup.defineHiddenClass(bytecode, true, ClassOption.NESTMATE).lookupClass(); } catch (IllegalAccessException e) { throw new InternalError(e); } }
< prev index next >