aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-06-20 12:13:19 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-06-20 12:13:19 +0000
commit319d7645255921395d6573a6d00327029864c99c (patch)
tree1c696878b74f33c66c2bba6741a2c6eca5882845 /libjava
parentf8b7363eedee2519b007fe6b449b7b3f9d652214 (diff)
downloadgcc-319d7645255921395d6573a6d00327029864c99c.zip
gcc-319d7645255921395d6573a6d00327029864c99c.tar.gz
gcc-319d7645255921395d6573a6d00327029864c99c.tar.bz2
2003-06-20 Michael Koch <konqueror@gmx.de>
* java/io/ObjectStreamField.java (unshared): new member variable. (ObjectStreamField): New constructor. (isUnshared): New method. From-SVN: r68261
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog7
-rw-r--r--libjava/java/io/ObjectStreamField.java24
2 files changed, 25 insertions, 6 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index ea778ed..9c2413a 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,12 @@
2003-06-20 Michael Koch <konqueror@gmx.de>
+ * java/io/ObjectStreamField.java
+ (unshared): new member variable.
+ (ObjectStreamField): New constructor.
+ (isUnshared): New method.
+
+2003-06-20 Michael Koch <konqueror@gmx.de>
+
* java/net/URLStreamHandler.java
(hostsEqual): Rewritten.
diff --git a/libjava/java/io/ObjectStreamField.java b/libjava/java/io/ObjectStreamField.java
index 56f0d1a..9edb1dc 100644
--- a/libjava/java/io/ObjectStreamField.java
+++ b/libjava/java/io/ObjectStreamField.java
@@ -41,13 +41,25 @@ package java.io;
import gnu.java.lang.reflect.TypeSignature;
// XXX doc
-public class ObjectStreamField implements java.lang.Comparable
+public class ObjectStreamField implements Comparable
{
+ private String name;
+ private Class type;
+ private String typename;
+ private int offset = -1; // XXX make sure this is correct
+ private boolean unshared;
+
public ObjectStreamField (String name, Class type)
{
+ this (name, type, false);
+ }
+
+ public ObjectStreamField (String name, Class type, boolean unshared)
+ {
this.name = name;
this.type = type;
this.typename = TypeSignature.getEncodingOfClass(type);
+ this.unshared = unshared;
}
/**
@@ -99,6 +111,11 @@ public class ObjectStreamField implements java.lang.Comparable
offset = off;
}
+ public boolean isUnshared ()
+ {
+ return unshared;
+ }
+
public boolean isPrimitive ()
{
return type.isPrimitive ();
@@ -123,10 +140,5 @@ public class ObjectStreamField implements java.lang.Comparable
{
return "ObjectStreamField< " + type + " " + name + " >";
}
-
- private String name;
- private Class type;
- private String typename;
- private int offset = -1; // XXX make sure this is correct
}