natByteBufferImpl.cc, [...]: Added copyright and license.
2003-02-13 Michael Koch <konqueror@gmx.de> * gnu/java/nio/natByteBufferImpl.cc, gnu/java/nio/natCharBufferImpl.cc, gnu/java/nio/natDoubleBufferImpl.cc, gnu/java/nio/natFloatBufferImpl.cc, gnu/java/nio/natIntBufferImpl.cc, gnu/java/nio/natLongBufferImpl.cc, gnu/java/nio/natShortBufferImpl.cc: Added copyright and license. * java/nio/DoubleBuffer.java, java/nio/FloatBuffer.java, java/nio/IntBuffer.java, java/nio/LongBuffer.java, java/nio/ShortBuffer.java (array): Throw exceptions. (arrayOffset): Throw exceptions. From-SVN: r62832
This commit is contained in:
parent
e8298892fa
commit
9038b8b4d3
13 changed files with 148 additions and 0 deletions
|
@ -1,3 +1,21 @@
|
||||||
|
2003-02-13 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
|
* gnu/java/nio/natByteBufferImpl.cc,
|
||||||
|
gnu/java/nio/natCharBufferImpl.cc,
|
||||||
|
gnu/java/nio/natDoubleBufferImpl.cc,
|
||||||
|
gnu/java/nio/natFloatBufferImpl.cc,
|
||||||
|
gnu/java/nio/natIntBufferImpl.cc,
|
||||||
|
gnu/java/nio/natLongBufferImpl.cc,
|
||||||
|
gnu/java/nio/natShortBufferImpl.cc:
|
||||||
|
Added copyright and license.
|
||||||
|
* java/nio/DoubleBuffer.java,
|
||||||
|
java/nio/FloatBuffer.java,
|
||||||
|
java/nio/IntBuffer.java,
|
||||||
|
java/nio/LongBuffer.java,
|
||||||
|
java/nio/ShortBuffer.java
|
||||||
|
(array): Throw exceptions.
|
||||||
|
(arrayOffset): Throw exceptions.
|
||||||
|
|
||||||
2003-02-13 Michael Koch <konqueror@gmx.de>
|
2003-02-13 Michael Koch <konqueror@gmx.de>
|
||||||
|
|
||||||
* gnu/java/util/prefs/FileBasedFactory.java,
|
* gnu/java/util/prefs/FileBasedFactory.java,
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natByteBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natCharBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natDoubleBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natFloatBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natIntBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natLongBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
// natShortBufferImpl.cc
|
||||||
|
|
||||||
|
/* Copyright (C) 2002, 2003 Free Software Foundation
|
||||||
|
|
||||||
|
This file is part of libgcj.
|
||||||
|
|
||||||
|
This software is copyrighted work licensed under the terms of the
|
||||||
|
Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
|
||||||
|
details. */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
#include <gcj/cni.h>
|
#include <gcj/cni.h>
|
||||||
|
|
|
@ -125,11 +125,23 @@ public abstract class DoubleBuffer extends Buffer implements Comparable
|
||||||
|
|
||||||
public final double[] array()
|
public final double[] array()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return backing_buffer;
|
return backing_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int arrayOffset()
|
public final int arrayOffset()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return array_offset;
|
return array_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,11 +126,23 @@ public abstract class FloatBuffer extends Buffer implements Comparable
|
||||||
|
|
||||||
public final float[] array()
|
public final float[] array()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return backing_buffer;
|
return backing_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int arrayOffset()
|
public final int arrayOffset()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return array_offset;
|
return array_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,11 +126,23 @@ public abstract class IntBuffer extends Buffer implements Comparable
|
||||||
|
|
||||||
public final int[] array()
|
public final int[] array()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return backing_buffer;
|
return backing_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int arrayOffset()
|
public final int arrayOffset()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return array_offset;
|
return array_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,11 +126,23 @@ public abstract class LongBuffer extends Buffer implements Comparable
|
||||||
|
|
||||||
public final long[] array()
|
public final long[] array()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return backing_buffer;
|
return backing_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int arrayOffset()
|
public final int arrayOffset()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return array_offset;
|
return array_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,11 +126,23 @@ public abstract class ShortBuffer extends Buffer implements Comparable
|
||||||
|
|
||||||
public final short[] array()
|
public final short[] array()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return backing_buffer;
|
return backing_buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final int arrayOffset()
|
public final int arrayOffset()
|
||||||
{
|
{
|
||||||
|
if (backing_buffer == null)
|
||||||
|
throw new UnsupportedOperationException ();
|
||||||
|
|
||||||
|
if (isReadOnly ())
|
||||||
|
throw new ReadOnlyBufferException ();
|
||||||
|
|
||||||
return array_offset;
|
return array_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue