Imported GNU Classpath 0.90
Imported GNU Classpath 0.90
* scripts/makemake.tcl: LocaleData.java moved to gnu/java/locale.
* sources.am: Regenerated.
* gcj/javaprims.h: Regenerated.
* Makefile.in: Regenerated.
* gcj/Makefile.in: Regenerated.
* include/Makefile.in: Regenerated.
* testsuite/Makefile.in: Regenerated.
* gnu/java/lang/VMInstrumentationImpl.java: New override.
* gnu/java/net/local/LocalSocketImpl.java: Likewise.
* gnu/classpath/jdwp/VMMethod.java: Likewise.
* gnu/classpath/jdwp/VMVirtualMachine.java: Update to latest
interface.
* java/lang/Thread.java: Add UncaughtExceptionHandler.
* java/lang/reflect/Method.java: Implements GenericDeclaration and
isSynthetic(),
* java/lang/reflect/Field.java: Likewise.
* java/lang/reflect/Constructor.java
* java/lang/Class.java: Implements Type, GenericDeclaration,
getSimpleName() and getEnclosing*() methods.
* java/lang/Class.h: Add new public methods.
* java/lang/Math.java: Add signum(), ulp() and log10().
* java/lang/natMath.cc (log10): New function.
* java/security/VMSecureRandom.java: New override.
* java/util/logging/Logger.java: Updated to latest classpath
version.
* java/util/logging/LogManager.java: New override.
From-SVN: r113887
This commit is contained in:
@@ -115,18 +115,11 @@ final class ByteBufferImpl extends ByteBuffer
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int pos = position();
|
||||
if (pos > 0)
|
||||
{
|
||||
int count = remaining();
|
||||
shiftDown(0, pos, count);
|
||||
position(count);
|
||||
limit(capacity());
|
||||
}
|
||||
else
|
||||
{
|
||||
position(limit());
|
||||
limit(capacity());
|
||||
}
|
||||
int n = limit() - pos;
|
||||
if (n > 0)
|
||||
shiftDown(0, pos, n);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@@ -90,15 +90,14 @@ final class CharBufferImpl extends CharBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -82,15 +82,14 @@ final class DoubleBufferImpl extends DoubleBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -82,15 +82,14 @@ final class FloatBufferImpl extends FloatBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -82,15 +82,14 @@ final class IntBufferImpl extends IntBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -82,15 +82,14 @@ final class LongBufferImpl extends LongBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ public abstract class MappedByteBuffer extends ByteBuffer
|
||||
forceImpl();
|
||||
}
|
||||
|
||||
public void finalize()
|
||||
protected void finalize()
|
||||
throws Throwable
|
||||
{
|
||||
unmapImpl();
|
||||
|
||||
@@ -82,15 +82,14 @@ final class ShortBufferImpl extends ShortBuffer
|
||||
{
|
||||
checkIfReadOnly();
|
||||
mark = -1;
|
||||
int copied = 0;
|
||||
|
||||
while (remaining () > 0)
|
||||
int p = position();
|
||||
int n = limit() - p;
|
||||
if (n > 0)
|
||||
{
|
||||
put (copied, get ());
|
||||
copied++;
|
||||
System.arraycopy(backing_buffer, array_offset + p,
|
||||
backing_buffer, array_offset, n);
|
||||
}
|
||||
|
||||
position (copied);
|
||||
position(n);
|
||||
limit(capacity());
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ exception statement from your version. */
|
||||
package java.nio.channels;
|
||||
|
||||
import gnu.java.nio.ChannelReader;
|
||||
import gnu.java.nio.ChannelWriter;
|
||||
import gnu.java.nio.InputStreamChannel;
|
||||
import gnu.java.nio.OutputStreamChannel;
|
||||
|
||||
@@ -126,8 +127,7 @@ public final class Channels
|
||||
public static Writer newWriter(WritableByteChannel ch, CharsetEncoder enc,
|
||||
int minBufferCap)
|
||||
{
|
||||
// FIXME: implement java.nio.channels.Channel.newWriter(WritableByteChannel, CharsetEncoder, int)
|
||||
throw new Error("not implemented");
|
||||
return new ChannelWriter(ch, enc, minBufferCap);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
# This property file contains dependencies of classes, methods, and
|
||||
# field on other methods or classes.
|
||||
#
|
||||
# Syntax:
|
||||
#
|
||||
# <used>: <needed 1> [... <needed N>]
|
||||
#
|
||||
# means that when <used> is included, <needed 1> (... <needed N>) must
|
||||
# be included as well.
|
||||
#
|
||||
# <needed X> and <used> are of the form
|
||||
#
|
||||
# <class.methodOrField(signature)>
|
||||
#
|
||||
# or just
|
||||
#
|
||||
# <class>
|
||||
#
|
||||
# Within dependencies, variables can be used. A variable is defined as
|
||||
# follows:
|
||||
#
|
||||
# {variable}: value1 value2 ... value<n>
|
||||
#
|
||||
# variables can be used on the right side of dependencies as follows:
|
||||
#
|
||||
# <used>: com.bla.blu.{variable}.Class.m()V
|
||||
#
|
||||
# The use of the variable will expand to <n> dependencies of the form
|
||||
#
|
||||
# <used>: com.bla.blu.value1.Class.m()V
|
||||
# <used>: com.bla.blu.value2.Class.m()V
|
||||
# ...
|
||||
# <used>: com.bla.blu.value<n>.Class.m()V
|
||||
#
|
||||
# Variables can be redefined when building a system to select the
|
||||
# required support for features like encodings, protocols, etc.
|
||||
#
|
||||
# Hints:
|
||||
#
|
||||
# - For methods and fields, the signature is mandatory. For
|
||||
# specification, please see the Java Virtual Machine Specification by
|
||||
# SUN. Unlike in the spec, field signatures (types) are in brackets.
|
||||
#
|
||||
# - Package names must be separated by '/' (and not '.'). E.g.,
|
||||
# java/lang/Class (this is necessary, because the '.' is used to
|
||||
# separate method or field names from classes)
|
||||
#
|
||||
# - In case <needed> refers to a class, only the class itself will be
|
||||
# included in the resulting binary, NOT necessarily all its methods
|
||||
# and fields. If you want to refer to all methods and fields, you can
|
||||
# write class.* as an abbreviation.
|
||||
#
|
||||
# - Abbreviations for packages are also possible: my/package/* means all
|
||||
# methods and fields of all classes in my/package.
|
||||
#
|
||||
# - A line with a trailing '\' continues in the next line.
|
||||
|
||||
# end of file
|
||||
Reference in New Issue
Block a user