src/jdk/nashorn/internal/runtime/arrays/ByteBufferArrayData.java

Print this page

        

*** 25,35 **** package jdk.nashorn.internal.runtime.arrays; import static jdk.nashorn.internal.runtime.ECMAErrors.typeError; import java.nio.ByteBuffer; ! import jdk.nashorn.internal.runtime.GlobalObject; import jdk.nashorn.internal.runtime.PropertyDescriptor; import jdk.nashorn.internal.runtime.ScriptRuntime; /** * Implementation of {@link ArrayData} that wraps a nio ByteBuffer --- 25,35 ---- package jdk.nashorn.internal.runtime.arrays; import static jdk.nashorn.internal.runtime.ECMAErrors.typeError; import java.nio.ByteBuffer; ! import jdk.nashorn.internal.objects.Global; import jdk.nashorn.internal.runtime.PropertyDescriptor; import jdk.nashorn.internal.runtime.ScriptRuntime; /** * Implementation of {@link ArrayData} that wraps a nio ByteBuffer
*** 58,68 **** * @param global the global object * @param index the index * * @return property descriptor for element */ ! public PropertyDescriptor getDescriptor(final GlobalObject global, final int index) { // make the index properties not configurable return global.newDataDescriptor(getObject(index), false, true, true); } @Override --- 58,69 ---- * @param global the global object * @param index the index * * @return property descriptor for element */ ! @Override ! public PropertyDescriptor getDescriptor(final Global global, final int index) { // make the index properties not configurable return global.newDataDescriptor(getObject(index), false, true, true); } @Override