This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: Classpath comparison
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Cc: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 17 Feb 2002 17:13:04 -0700
- Subject: Patch: FYI: Classpath comparison
- Reply-to: tromey at redhat dot com
I'm checking this in.
This updates our classpath/libgcj comparison page.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* libgcj-classpath-compare.html: Rebuilt.
Index: libgcj-classpath-compare.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/java/libgcj-classpath-compare.html,v
retrieving revision 1.35
diff -u -r1.35 libgcj-classpath-compare.html
--- libgcj-classpath-compare.html 2002/02/11 23:30:18 1.35
+++ libgcj-classpath-compare.html 2002/02/17 23:47:30
@@ -9,7 +9,7 @@
cvs Classpath. It was generated using the <a
href="scripts/gen-classpath-compare"><code>gen-classpath-compare</code></a>
script on
-2002-02-11.
+2002-02-17.
This table intentionally omits certain classes which are not of
interest. If the third column shows a "Diff" link, then that means
the script believes that the class has been merged, but a difference
@@ -95,7 +95,6 @@
<tr> <td>java.lang.Double</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.lang.Double.diff">Diff</a></td> </tr>
<tr> <td>java.lang.EcosProcess</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.lang.Float</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.lang.Float.diff">Diff</a></td> </tr>
-<tr> <td>java.lang.Math</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.lang.Object</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.lang.Package</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.lang.Package.diff">Diff</a></td> </tr>
<tr> <td>java.lang.PosixProcess</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> <td bgcolor="#eeeeaa">No</td> </tr>
@@ -117,33 +116,26 @@
<tr> <td>java.lang.reflect.Method</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.lang.reflect.Proxy</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.lang.reflect.UndeclaredThrowableException</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
-<tr> <td>java.math.BigInteger</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.math.BigInteger.diff">Diff</a></td> </tr>
<tr> <td>java.net.DatagramSocket</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
-<tr> <td>java.net.DatagramSocketImpl</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.net.DatagramSocketImpl.diff">Diff</a></td> </tr>
<tr> <td>java.net.HttpURLConnection</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.InetAddress</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.JarURLConnection</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.MimeTypeMapper</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.PlainDatagramSocketImpl</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.PlainSocketImpl</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
-<tr> <td>java.net.SocketImpl</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.net.SocketImpl.diff">Diff</a></td> </tr>
<tr> <td>java.net.SocketInputStream</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.SocketOutputStream</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.URL</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.URLClassLoader</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.URLConnection</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.net.URLStreamHandler</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
-<tr> <td>java.rmi.server.RMIClassLoader</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.rmi.server.RMIClassLoader.diff">Diff</a></td> </tr>
-<tr> <td>java.security.BasicPermission</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.security.BasicPermission.diff">Diff</a></td> </tr>
<tr> <td>java.text.CollationElementIterator</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.text.CollationKey</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.text.Collator</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.text.Collator.diff">Diff</a></td> </tr>
<tr> <td>java.text.RuleBasedCollator</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
-<tr> <td>java.util.Arrays</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.util.Arrays.diff">Diff</a></td> </tr>
<tr> <td>java.util.Collections</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.util.Collections.diff">Diff</a></td> </tr>
<tr> <td>java.util.List</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.util.List.diff">Diff</a></td> </tr>
<tr> <td>java.util.TimeZone</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.util.TimeZone.diff">Diff</a></td> </tr>
-<tr> <td>java.util.WeakHashMap</td> <td>Yes</td> <td>Yes</td> <td bgcolor="#aaaaee"><a href="compare/java.util.WeakHashMap.diff">Diff</a></td> </tr>
<tr> <td>java.util.prefs.AbstractPreferences</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.util.prefs.BackingStoreException</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
<tr> <td>java.util.prefs.InvalidPreferencesFormatException</td> <td bgcolor="#eeeeaa">No</td> <td>Yes</td> <td bgcolor="#eeeeaa">No</td> </tr>
Index: compare/java.lang.StringBuffer.diff
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/java/compare/java.lang.StringBuffer.diff,v
retrieving revision 1.4
diff -u -r1.4 java.lang.StringBuffer.diff
--- compare/java.lang.StringBuffer.diff 2002/01/22 22:57:44 1.4
+++ compare/java.lang.StringBuffer.diff 2002/02/17 23:47:31
@@ -1,6 +1,21 @@
---- /home/tromey/gnu/egcs/classpath/classpath/java/lang/StringBuffer.java Tue Jan 22 15:49:57 2002
+--- /home/tromey/gnu/egcs/classpath/classpath/java/lang/StringBuffer.java Sun Feb 17 17:06:42 2002
+++ java/lang/StringBuffer.java Tue Jan 22 16:01:35 2002
-@@ -111,10 +111,7 @@
+@@ -1,5 +1,5 @@
+ /* StringBuffer.java -- Growable strings
+- Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
++ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+ This file is part of GNU Classpath.
+
+@@ -41,7 +41,6 @@
+ /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
+ * Updated using online JDK 1.2 docs.
+ * Believed complete and correct to JDK 1.2.
+- * 1.4 compatibility August 22, 2001 - Isaac Jones
+ * Merged with Classpath.
+ */
+
+@@ -112,10 +111,7 @@
* @return this <code>StringBuffer</code>.
* @see java.lang.String#valueOf(int)
*/
@@ -12,3 +27,123 @@
/** Append the <code>String</code> value of the argument to this <code>StringBuffer</code>.
* Uses <code>String.valueOf()</code> to convert to
+@@ -152,21 +148,6 @@
+ {
+ return append (String.valueOf(dnum));
+ }
+-
+- /** Append the <code>StringBuffer</code> value of the argument to this
+- * <code>StringBuffer</code>.
+- * Uses <code>StringBuffer.toString()</code> to convert to
+- * <code>String</code>.
+- *
+- * @param stringBuffer the <code>StringBuffer</code> to convert and append.
+- * @return this <code>StringBuffer</code>.
+- * @see java.lang.StringBuffer.toString()
+- * @since 1.4
+- */
+- public StringBuffer append (StringBuffer stringBuffer)
+- {
+- return append (stringBuffer.toString());
+- }
+
+ /** Append the <code>String</code> value of the argument to this <code>StringBuffer</code>.
+ * Uses <code>String.valueOf()</code> to convert to
+@@ -707,16 +688,15 @@
+ *
+ * @return new String which is a substring of this StringBuffer
+ *
+- * @exception IndexOutOfBoundsException
++ * @exception StringIndexOutOfBoundsException
+ * if (beginIndex < 0 || endIndex > this.length() || beginIndex > endIndex)
+- *
+- * @since 1.4
+ */
+ public CharSequence subSequence (int beginIndex, int endIndex)
+ {
+ return substring(beginIndex, endIndex);
+ }
+
++
+ /** Convert this <code>StringBuffer</code> to a <code>String</code>.
+ * @return the characters in this StringBuffer
+ */
+@@ -725,78 +705,6 @@
+ // Note: in libgcj this causes the StringBuffer to be shared. In
+ // Classpath it does not.
+ return new String (this);
+- }
+-
+- /** Finds the first instance of a String in this StringBuffer.
+- *
+- * @param str String to find
+- *
+- * @return location (base 0) of the String, or -1 if not found
+- *
+- * @exception NullPointerException if `str' is null
+- *
+- * @since 1.4
+- */
+- public int indexOf (String string)
+- {
+- return this.toString().indexOf(string, 0);
+- //save a call in String.java by passing second argument
+- }
+-
+- /** Finds the first instance of a String in this StringBuffer,
+- * starting at a given index. If starting index is less than 0,
+- * the search starts at the beginning of this String. If the
+- * starting index is greater than the length of this String, -1 is
+- * returned.
+- *
+- * @param str String to find
+- * @param fromIndex index to start the search
+- *
+- * @return location (base 0) of the String, or -1 if not found
+- *
+- * @exception NullPointerException if `str' is null
+- *
+- * @since 1.4
+- */
+- public int indexOf (String string,
+- int fromIndex)
+- {
+- return this.toString().indexOf(string, fromIndex);
+- }
+-
+- /** Finds the last instance of a String in this StringBuffer.
+- *
+- * @param str String to find
+- *
+- * @return location (base 0) of the String, or -1 if not found
+- *
+- * @exception NullPointerException if `str' is null
+- *
+- * @since 1.4
+- */
+- public int lastIndexOf(String str) throws NullPointerException
+- {
+- return this.toString().lastIndexOf(str, count-str.count);
+- }
+-
+- /** Finds the last instance of a String in this StringBuffer,
+- * starting at a given index. If starting index is greater than the
+- * maximum valid index, then the search begins at the end of this
+- * String. If the starting index is less than zero, -1 is returned.
+- *
+- * @param str String to find
+- * @param fromIndex index to start the search
+- *
+- * @return location (base 0) of the String, or -1 if not found
+- *
+- * @exception NullPointerException if `str' is null
+- *
+- * @since 1.4
+- */
+- public int lastIndexOf(String str, int fromIndex)
+- throws NullPointerException
+- {
+- return this.toString().lastIndexOf(str, fromIndex);
+ }
+
+ // Index of next available character. Note that this has
Index: compare/java.util.Collections.diff
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/java/compare/java.util.Collections.diff,v
retrieving revision 1.7
diff -u -r1.7 java.util.Collections.diff
--- compare/java.util.Collections.diff 2002/01/22 22:57:44 1.7
+++ compare/java.util.Collections.diff 2002/02/17 23:47:32
@@ -1,5 +1,12 @@
---- /home/tromey/gnu/egcs/classpath/classpath/java/util/Collections.java Tue Jan 22 15:50:07 2002
+--- /home/tromey/gnu/egcs/classpath/classpath/java/util/Collections.java Sun Feb 17 17:06:43 2002
+++ java/util/Collections.java Tue Jan 22 16:01:39 2002
+@@ -1,5 +1,5 @@
+ /* Collections.java -- Utility class with methods to operate on collections
+- Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
++ Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+ This file is part of GNU Classpath.
+
@@ -60,6 +60,7 @@
* modify the set.
*
@@ -325,6 +332,27 @@
/**
* Compare two objects with or without a Comparator. If c is null, uses the
* natural ordering. Slightly slower than doing it inline if the JVM isn't
+@@ -726,7 +502,7 @@
+ }
+
+ /**
+- * Returns an ArrayList holding the elements visited by a given
++ * Returns an array list holding the elements visited by a given
+ * Enumeration. This method exists for interoperability between legacy
+ * APIs and the new Collection API.
+ *
+@@ -735,9 +511,9 @@
+ * @see ArrayList
+ * @since 1.4
+ */
+- public static ArrayList list(Enumeration e)
++ public static List list(Enumeration e)
+ {
+- ArrayList l = new ArrayList();
++ List l = new ArrayList();
+ while (e.hasMoreElements())
+ l.add(e.nextElement());
+ return l;
@@ -1724,7 +1500,6 @@
l.set(i, l.set(j, l.get(i)));
}