diff options
Diffstat (limited to 'libjava/java/awt/geom/Point2D.java')
-rw-r--r-- | libjava/java/awt/geom/Point2D.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libjava/java/awt/geom/Point2D.java b/libjava/java/awt/geom/Point2D.java index 93ed520..1e92adc 100644 --- a/libjava/java/awt/geom/Point2D.java +++ b/libjava/java/awt/geom/Point2D.java @@ -64,7 +64,11 @@ public abstract class Point2D implements Cloneable public Object clone() { - return super.clone(); + try + { + return super.clone (); + } + catch (CloneNotSupportedException _) {return null;} } public static class Double extends Point2D |