summaryrefslogtreecommitdiff
path: root/java/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/src')
-rw-r--r--java/src/Ice/ObjectImpl.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/java/src/Ice/ObjectImpl.java b/java/src/Ice/ObjectImpl.java
index d18e0c4502c..e653f746aee 100644
--- a/java/src/Ice/ObjectImpl.java
+++ b/java/src/Ice/ObjectImpl.java
@@ -18,9 +18,17 @@ public abstract class ObjectImpl implements Object, java.lang.Cloneable
public java.lang.Object
clone()
- throws java.lang.CloneNotSupportedException
{
- return super.clone();
+ java.lang.Object o = null;
+ try
+ {
+ o = super.clone();
+ }
+ catch(java.lang.CloneNotSupportedException ex)
+ {
+ assert false; // Impossible
+ }
+ return o;
}
public int