This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
HashSet.clone
- To: java-patches at sources dot redhat dot com
- Subject: HashSet.clone
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 15 Feb 2001 18:18:13 +1300
It is illegal to try and catch an exception that can never be thrown
from within a try block. GCJ doesn't actually detect this, but other
Java compilers complain about it, so we need to make this fix in order
to resync with classpath.
regards
[ bryce ]
Index: HashSet.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/util/HashSet.java,v
retrieving revision 1.2
diff -u -r1.2 HashSet.java
--- HashSet.java 2001/02/14 04:44:21 1.2
+++ HashSet.java 2001/02/15 05:09:30
@@ -129,14 +129,7 @@
public Object clone()
{
HashSet copy = new HashSet();
- try
- {
- copy.map = (HashMap) map.clone();
- }
- catch (CloneNotSupportedException ex)
- {
- }
-
+ copy.map = (HashMap) map.clone();
return copy;
}