This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: java.io.ObjectStreamField


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to trunk to implement the missing 
features in ObjectStreamField.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+8vsiWSOgCCdjSDsRAhCwAJ99BuBrwbrJwho0BAmiDD6A/cOdpQCfccOB
cOP4wJN2vdH81hOI9LfUJnc=
=T+ae
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1972
diff -u -b -B -r1.1972 ChangeLog
--- ChangeLog	20 Jun 2003 12:07:22 -0000	1.1972
+++ ChangeLog	20 Jun 2003 12:10:10 -0000
@@ -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.
 
Index: java/io/ObjectStreamField.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/ObjectStreamField.java,v
retrieving revision 1.4
diff -u -b -B -r1.4 ObjectStreamField.java
--- java/io/ObjectStreamField.java	18 Mar 2003 06:00:25 -0000	1.4
+++ java/io/ObjectStreamField.java	20 Jun 2003 12:10:10 -0000
@@ -41,13 +41,25 @@
 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 @@
     offset = off;
   }
 
+  public boolean isUnshared ()
+  {
+    return unshared;
+  }
+
   public boolean isPrimitive ()
   {
     return type.isPrimitive ();
@@ -123,10 +140,5 @@
   {
     return "ObjectStreamField< " + type + " " + name + " >";
   }
-
-  private String name;
-  private Class type;
-  private String typename;
-  private int offset = -1; // XXX make sure this is correct
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]