src/jdk/nashorn/internal/runtime/UserAccessorProperty.java

Print this page

        

*** 185,194 **** --- 185,199 ---- public MethodHandle getGetter(final Class<?> type) { return Lookup.filterReturnType(USER_ACCESSOR_GETTER.methodHandle(), type); } @Override + void initMethodHandles(Class<?> structure) { + throw new UnsupportedOperationException(); + } + + @Override public ScriptFunction getGetterFunction(final ScriptObject obj) { final Object value = obj.getSpill(getterSlot); return (value instanceof ScriptFunction) ? (ScriptFunction) value : null; }