Import GNU Classpath (20121202).

2012-12-19  Matthias Klose  <doko@ubuntu.com>

        Import GNU Classpath (20121202).

        * Regenerate class and header files.
        * Regenerate auto* files.
        * sources.am, gcj/javaprims.h: Regenerate.
        * gnu/java/nio/FileLockImpl.java (close): New override.

From-SVN: r194618
This commit is contained in:
Matthias Klose
2012-12-19 17:03:15 +00:00
parent baeb2e1647
commit a1906e8bbf
454 changed files with 5224 additions and 2925 deletions
+1
View File
@@ -48,6 +48,7 @@ package java.io;
* @since 1.5
*/
public interface Closeable
extends AutoCloseable
{
/**
+2 -1
View File
@@ -48,7 +48,8 @@ package java.io;
*
* @see DataInput
*/
public interface ObjectInput extends DataInput
public interface ObjectInput
extends DataInput, AutoCloseable
{
/**
* This method returns the number of bytes that can be read without
@@ -529,12 +529,13 @@ public class ObjectInputStream extends InputStream
if (dump)
dumpElementln("ENUM=");
ObjectStreamClass osc = (ObjectStreamClass) readObject();
int enumHandle = assignNewHandle(null, shared);
String constantName = (String) readObject();
if (dump)
dumpElementln("CONSTANT NAME = " + constantName);
Class clazz = osc.forClass();
Enum instance = Enum.valueOf(clazz, constantName);
assignNewHandle(instance,shared);
rememberHandle(instance, shared, enumHandle);
ret_val = instance;
break;
}
+2 -1
View File
@@ -48,7 +48,8 @@ package java.io;
*
* @see DataOutput
*/
public interface ObjectOutput extends DataOutput
public interface ObjectOutput
extends DataOutput, AutoCloseable
{
/**
* This method writes the specified byte to the output stream.