diff options
Diffstat (limited to 'libjava/java/awt/image/Kernel.java')
-rw-r--r-- | libjava/java/awt/image/Kernel.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libjava/java/awt/image/Kernel.java b/libjava/java/awt/image/Kernel.java index 27d6ddd..4898f9e 100644 --- a/libjava/java/awt/image/Kernel.java +++ b/libjava/java/awt/image/Kernel.java @@ -117,7 +117,7 @@ public class Kernel implements Cloneable throws IllegalArgumentException { if (data == null) - return (float[])this.data.clone(); + return (float[])this.data.clone(); if (data.length < this.data.length) throw new IllegalArgumentException(); @@ -131,6 +131,13 @@ public class Kernel implements Cloneable */ public Object clone() { - return new Kernel(width, height, data); + try + { + return super.clone(); + } + catch (CloneNotSupportedException e) + { + throw (Error) new InternalError().initCause(e); // Impossible + } } } |