a patch for the libraries
Archie Cobbs
archie at whistle.com
Tue Mar 9 23:27:04 PST 1999
Aaron Place writes:
> A patch to make a few changes to various classes.
Thanks Aaron!
The only one I didn't commit was this one:
diff -ur kaffe/libraries/javalib/java/util/Stack.java kaffe/libraries/javalib/java/util/Stack.java
--- kaffe/libraries/javalib/java/util/Stack.java Thu Mar 4 12:09:55 1999
+++ kaffe/libraries/javalib/java/util/Stack.java Mon Mar 8 20:26:26 1999
@@ -20,7 +20,7 @@
return isEmpty();
}
-public synchronized Object peek() throws EmptyStackException {
+public synchronized Object peek() {
try {
return elementAt(size() - 1);
} catch (ArrayIndexOutOfBoundsException _) {
@@ -28,7 +28,7 @@
}
}
-public synchronized Object pop() throws EmptyStackException {
+public synchronized Object pop() {
Object peeked = peek();
removeElementAt(size() - 1);
The EmptyStackException exceptions are supposed to be declared according to:
http://java.sun.com/products/jdk/1.2/docs/api/java/util/Stack.html
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
More information about the kaffe
mailing list