OSDN Git Service

* java/lang/Class.java (internalGetFields): Use LinkedHashSet.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Aug 2007 16:56:17 +0000 (16:56 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Aug 2007 16:56:17 +0000 (16:56 +0000)
* classpath/lib/java/lang/Class.class: Rebuilt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127518 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/classpath/lib/java/lang/Class.class
libjava/java/lang/Class.java

index 22d1b50..c97a0a0 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-15  Tom Tromey  <tromey@redhat.com>
+
+       * java/lang/Class.java (internalGetFields): Use LinkedHashSet.
+       * classpath/lib/java/lang/Class.class: Rebuilt.
+
 2007-08-15  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
        * java/lang/natPosixProcess.cc (sigchld_handler) [!SA_SIGINFO]: Remove
index 78741b2..ffe072f 100644 (file)
Binary files a/libjava/classpath/lib/java/lang/Class.class and b/libjava/classpath/lib/java/lang/Class.class differ
index 6780517..691f983 100644 (file)
@@ -56,7 +56,7 @@ import java.security.PrivilegedAction;
 import java.security.ProtectionDomain;
 import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.HashMap;
 import java.util.Collection;
 import java.lang.reflect.AnnotatedElement;
@@ -473,7 +473,7 @@ public final class Class<T>
    */
   private Field[] internalGetFields()
   {
-    HashSet set = new HashSet();
+    LinkedHashSet set = new LinkedHashSet();
     set.addAll(Arrays.asList(getDeclaredFields(true)));
     Class[] interfaces = getInterfaces();
     for (int i = 0; i < interfaces.length; i++)