Mercurial > hg > release > icedtea6-1.13
view generated/java/nio/DirectByteBufferR.java @ 3231:6ddafe528889
Update to build against October 2015 security fixes.
2015-10-27 Andrew John Hughes <gnu.andrew@redhat.com>
* Makefile.am:
(OPENJDK_DATE): Bump to b37 creation date;
27th of October, 2015.
(OPENJDK_SHA256SUM): Update for b37 tarball.
2015-10-26 Andrew John Hughes <gnu.andrew@redhat.com>
* NEWS: Updated.
* generated/java/nio/BufferOverflowException.java,
* generated/java/nio/BufferUnderflowException.java,
* generated/java/nio/ByteBuffer.java,
* generated/java/nio/ByteBufferAsCharBufferB.java,
* generated/java/nio/ByteBufferAsCharBufferL.java,
* generated/java/nio/ByteBufferAsCharBufferRB.java,
* generated/java/nio/ByteBufferAsCharBufferRL.java,
* generated/java/nio/ByteBufferAsDoubleBufferB.java,
* generated/java/nio/ByteBufferAsDoubleBufferL.java,
* generated/java/nio/ByteBufferAsDoubleBufferRB.java,
* generated/java/nio/ByteBufferAsDoubleBufferRL.java,
* generated/java/nio/ByteBufferAsFloatBufferB.java,
* generated/java/nio/ByteBufferAsFloatBufferL.java,
* generated/java/nio/ByteBufferAsFloatBufferRB.java,
* generated/java/nio/ByteBufferAsFloatBufferRL.java,
* generated/java/nio/ByteBufferAsIntBufferB.java,
* generated/java/nio/ByteBufferAsIntBufferL.java,
* generated/java/nio/ByteBufferAsIntBufferRB.java,
* generated/java/nio/ByteBufferAsIntBufferRL.java,
* generated/java/nio/ByteBufferAsLongBufferB.java,
* generated/java/nio/ByteBufferAsLongBufferL.java,
* generated/java/nio/ByteBufferAsLongBufferRB.java,
* generated/java/nio/ByteBufferAsLongBufferRL.java,
* generated/java/nio/ByteBufferAsShortBufferB.java,
* generated/java/nio/ByteBufferAsShortBufferL.java,
* generated/java/nio/ByteBufferAsShortBufferRB.java,
* generated/java/nio/ByteBufferAsShortBufferRL.java,
* generated/java/nio/CharBuffer.java,
* generated/java/nio/DirectByteBuffer.java,
* generated/java/nio/DirectByteBufferR.java,
* generated/java/nio/DirectCharBufferRS.java,
* generated/java/nio/DirectCharBufferRU.java,
* generated/java/nio/DirectCharBufferS.java,
* generated/java/nio/DirectCharBufferU.java,
* generated/java/nio/DirectDoubleBufferRS.java,
* generated/java/nio/DirectDoubleBufferRU.java,
* generated/java/nio/DirectDoubleBufferS.java,
* generated/java/nio/DirectDoubleBufferU.java,
* generated/java/nio/DirectFloatBufferRS.java,
* generated/java/nio/DirectFloatBufferRU.java,
* generated/java/nio/DirectFloatBufferS.java,
* generated/java/nio/DirectFloatBufferU.java,
* generated/java/nio/DirectIntBufferRS.java,
* generated/java/nio/DirectIntBufferRU.java,
* generated/java/nio/DirectIntBufferS.java,
* generated/java/nio/DirectIntBufferU.java,
* generated/java/nio/DirectLongBufferRS.java,
* generated/java/nio/DirectLongBufferRU.java,
* generated/java/nio/DirectLongBufferS.java,
* generated/java/nio/DirectLongBufferU.java,
* generated/java/nio/DirectShortBufferRS.java,
* generated/java/nio/DirectShortBufferRU.java,
* generated/java/nio/DirectShortBufferS.java,
* generated/java/nio/DirectShortBufferU.java,
* generated/java/nio/DoubleBuffer.java,
* generated/java/nio/FloatBuffer.java,
* generated/java/nio/HeapByteBuffer.java,
* generated/java/nio/HeapByteBufferR.java,
* generated/java/nio/HeapCharBuffer.java,
* generated/java/nio/HeapCharBufferR.java,
* generated/java/nio/HeapDoubleBuffer.java,
* generated/java/nio/HeapDoubleBufferR.java,
* generated/java/nio/HeapFloatBuffer.java,
* generated/java/nio/HeapFloatBufferR.java,
* generated/java/nio/HeapIntBuffer.java,
* generated/java/nio/HeapIntBufferR.java,
* generated/java/nio/HeapLongBuffer.java,
* generated/java/nio/HeapLongBufferR.java,
* generated/java/nio/HeapShortBuffer.java,
* generated/java/nio/HeapShortBufferR.java,
* generated/java/nio/IntBuffer.java,
* generated/java/nio/InvalidMarkException.java,
* generated/java/nio/LongBuffer.java,
* generated/java/nio/ReadOnlyBufferException.java,
* generated/java/nio/ShortBuffer.java,
* generated/java/nio/channels/AlreadyConnectedException.java,
* generated/java/nio/channels/AsynchronousCloseException.java,
* generated/java/nio/channels/CancelledKeyException.java,
* generated/java/nio/channels/ClosedByInterruptException.java,
* generated/java/nio/channels/ClosedChannelException.java,
* generated/java/nio/channels/ClosedSelectorException.java,
* generated/java/nio/channels/ConnectionPendingException.java,
* generated/java/nio/channels/FileLockInterruptionException.java,
* generated/java/nio/channels/IllegalBlockingModeException.java,
* generated/java/nio/channels/IllegalSelectorException.java,
* generated/java/nio/channels/NoConnectionPendingException.java,
* generated/java/nio/channels/NonReadableChannelException.java,
* generated/java/nio/channels/NonWritableChannelException.java,
* generated/java/nio/channels/NotYetBoundException.java,
* generated/java/nio/channels/NotYetConnectedException.java,
* generated/java/nio/channels/OverlappingFileLockException.java,
* generated/java/nio/channels/UnresolvedAddressException.java,
* generated/java/nio/channels/UnsupportedAddressTypeException.java,
* generated/java/nio/charset/CharacterCodingException.java,
* generated/java/nio/charset/CharsetDecoder.java,
* generated/java/nio/charset/CharsetEncoder.java,
* generated/java/nio/charset/IllegalCharsetNameException.java,
* generated/java/nio/charset/UnsupportedCharsetException.java:
Replaced by versions from a build of OpenJDK 6 b37.
* patches/openjdk/p11cipher-6867345-turkish_regional_options_cause_npe_in_algoid.patch:
Regenerated.
* patches/version.patch:
Fix path from Version-template.java to Version.java.template,
following 6888701 upstream.
author | Andrew John Hughes <gnu.andrew@redhat.com> |
---|---|
date | Tue, 27 Oct 2015 16:35:07 +0000 |
parents | 9f98682ecbbb |
children |
line wrap: on
line source
/* * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ // -- This file was mechanically generated: Do not edit! -- // package java.nio; import sun.misc.Cleaner; import sun.misc.Unsafe; import sun.nio.ch.DirectBuffer; import sun.nio.ch.FileChannelImpl; class DirectByteBufferR extends DirectByteBuffer implements DirectBuffer { // Primary constructor // DirectByteBufferR(int cap) { // package-private super(cap); } // For memory-mapped buffers -- invoked by FileChannelImpl via reflection // protected DirectByteBufferR(int cap, long addr, Runnable unmapper) { super(cap, addr, unmapper); } // For duplicates and slices // DirectByteBufferR(DirectBuffer db, // package-private int mark, int pos, int lim, int cap, int off) { super(db, mark, pos, lim, cap, off); } public ByteBuffer slice() { int pos = this.position(); int lim = this.limit(); assert (pos <= lim); int rem = (pos <= lim ? lim - pos : 0); int off = (pos << 0); assert (off >= 0); return new DirectByteBufferR(this, -1, 0, rem, rem, off); } public ByteBuffer duplicate() { return new DirectByteBufferR(this, this.markValue(), this.position(), this.limit(), this.capacity(), 0); } public ByteBuffer asReadOnlyBuffer() { return duplicate(); } public ByteBuffer put(byte x) { throw new ReadOnlyBufferException(); } public ByteBuffer put(int i, byte x) { throw new ReadOnlyBufferException(); } public ByteBuffer put(ByteBuffer src) { throw new ReadOnlyBufferException(); } public ByteBuffer put(byte[] src, int offset, int length) { throw new ReadOnlyBufferException(); } public ByteBuffer compact() { throw new ReadOnlyBufferException(); } public boolean isDirect() { return true; } public boolean isReadOnly() { return true; } byte _get(int i) { // package-private return unsafe.getByte(address + i); } void _put(int i, byte b) { // package-private throw new ReadOnlyBufferException(); } private ByteBuffer putChar(long a, char x) { throw new ReadOnlyBufferException(); } public ByteBuffer putChar(char x) { throw new ReadOnlyBufferException(); } public ByteBuffer putChar(int i, char x) { throw new ReadOnlyBufferException(); } public CharBuffer asCharBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 1; if (!unaligned && ((address + off) % (1 << 1) != 0)) { return (bigEndian ? (CharBuffer)(new ByteBufferAsCharBufferRB(this, -1, 0, size, size, off)) : (CharBuffer)(new ByteBufferAsCharBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (CharBuffer)(new DirectCharBufferRU(this, -1, 0, size, size, off)) : (CharBuffer)(new DirectCharBufferRS(this, -1, 0, size, size, off))); } } private ByteBuffer putShort(long a, short x) { throw new ReadOnlyBufferException(); } public ByteBuffer putShort(short x) { throw new ReadOnlyBufferException(); } public ByteBuffer putShort(int i, short x) { throw new ReadOnlyBufferException(); } public ShortBuffer asShortBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 1; if (!unaligned && ((address + off) % (1 << 1) != 0)) { return (bigEndian ? (ShortBuffer)(new ByteBufferAsShortBufferRB(this, -1, 0, size, size, off)) : (ShortBuffer)(new ByteBufferAsShortBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (ShortBuffer)(new DirectShortBufferRU(this, -1, 0, size, size, off)) : (ShortBuffer)(new DirectShortBufferRS(this, -1, 0, size, size, off))); } } private ByteBuffer putInt(long a, int x) { throw new ReadOnlyBufferException(); } public ByteBuffer putInt(int x) { throw new ReadOnlyBufferException(); } public ByteBuffer putInt(int i, int x) { throw new ReadOnlyBufferException(); } public IntBuffer asIntBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 2; if (!unaligned && ((address + off) % (1 << 2) != 0)) { return (bigEndian ? (IntBuffer)(new ByteBufferAsIntBufferRB(this, -1, 0, size, size, off)) : (IntBuffer)(new ByteBufferAsIntBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (IntBuffer)(new DirectIntBufferRU(this, -1, 0, size, size, off)) : (IntBuffer)(new DirectIntBufferRS(this, -1, 0, size, size, off))); } } private ByteBuffer putLong(long a, long x) { throw new ReadOnlyBufferException(); } public ByteBuffer putLong(long x) { throw new ReadOnlyBufferException(); } public ByteBuffer putLong(int i, long x) { throw new ReadOnlyBufferException(); } public LongBuffer asLongBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 3; if (!unaligned && ((address + off) % (1 << 3) != 0)) { return (bigEndian ? (LongBuffer)(new ByteBufferAsLongBufferRB(this, -1, 0, size, size, off)) : (LongBuffer)(new ByteBufferAsLongBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (LongBuffer)(new DirectLongBufferRU(this, -1, 0, size, size, off)) : (LongBuffer)(new DirectLongBufferRS(this, -1, 0, size, size, off))); } } private ByteBuffer putFloat(long a, float x) { throw new ReadOnlyBufferException(); } public ByteBuffer putFloat(float x) { throw new ReadOnlyBufferException(); } public ByteBuffer putFloat(int i, float x) { throw new ReadOnlyBufferException(); } public FloatBuffer asFloatBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 2; if (!unaligned && ((address + off) % (1 << 2) != 0)) { return (bigEndian ? (FloatBuffer)(new ByteBufferAsFloatBufferRB(this, -1, 0, size, size, off)) : (FloatBuffer)(new ByteBufferAsFloatBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (FloatBuffer)(new DirectFloatBufferRU(this, -1, 0, size, size, off)) : (FloatBuffer)(new DirectFloatBufferRS(this, -1, 0, size, size, off))); } } private ByteBuffer putDouble(long a, double x) { throw new ReadOnlyBufferException(); } public ByteBuffer putDouble(double x) { throw new ReadOnlyBufferException(); } public ByteBuffer putDouble(int i, double x) { throw new ReadOnlyBufferException(); } public DoubleBuffer asDoubleBuffer() { int off = this.position(); int lim = this.limit(); assert (off <= lim); int rem = (off <= lim ? lim - off : 0); int size = rem >> 3; if (!unaligned && ((address + off) % (1 << 3) != 0)) { return (bigEndian ? (DoubleBuffer)(new ByteBufferAsDoubleBufferRB(this, -1, 0, size, size, off)) : (DoubleBuffer)(new ByteBufferAsDoubleBufferRL(this, -1, 0, size, size, off))); } else { return (nativeByteOrder ? (DoubleBuffer)(new DirectDoubleBufferRU(this, -1, 0, size, size, off)) : (DoubleBuffer)(new DirectDoubleBufferRS(this, -1, 0, size, size, off))); } } }