Class.java (internalGetFields): Use LinkedHashSet.

* java/lang/Class.java (internalGetFields): Use LinkedHashSet.
	* classpath/lib/java/lang/Class.class: Rebuilt.

From-SVN: r127518
This commit is contained in:
Tom Tromey 2007-08-15 16:56:17 +00:00 committed by Tom Tromey
parent c675e8ad36
commit b413c535af
3 changed files with 7 additions and 2 deletions

View 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

View 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++)