This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
[PATCH] Enabling commented out code in java/util/AbstractSet.java
- To: java-patches at sources dot redhat dot com
- Subject: [PATCH] Enabling commented out code in java/util/AbstractSet.java
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 23 Oct 2000 12:50:19 -0700
- Reply-to: apbianco at redhat dot com
I'm going to check this patch in. Thanks to Bryce's work on gcj/285,
this code builds again. You want to make sure that you have your
compiler patched with this before installing this run-time patch or
updating your libgcj tree:
http://gcc.gnu.org/ml/gcc-patches/2000-10/msg00646.html
./A
2000-10-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* java/util/AbstractSet.java (equals): Re-installed original code.
Index: java/util/AbstractSet.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/AbstractSet.java,v
retrieving revision 1.1
diff -u -p -r1.1 AbstractSet.java
--- AbstractSet.java 2000/08/19 18:19:42 1.1
+++ AbstractSet.java 2000/10/23 19:42:44
@@ -52,10 +52,7 @@ public abstract class AbstractSet extend
if (o == this) {
return true;
} else if (o instanceof Set && ((Set)o).size() == size()) {
- throw new Error ("FIXME: compiler error - AbstractSet.equals");
- /* FIXME: this is the correct implementation, but a compiler
- error prevents us from building it.
- return containsAll((Collection)o); */
+ return containsAll((Collection)o);
} else {
return false;
}