summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-08-28 06:03:17 +0200
committerSven Gothel <[email protected]>2014-08-28 06:03:17 +0200
commitc28b5eb2bb3db29dcdc51b391a4d9b236eb11885 (patch)
treee73ad0f39a1dbdf9ce51593f59873b745521e3d6
parente3226d16fc147dcad77e172538d09b62eee7e6d9 (diff)
Fix commit b5910f18f0b82a8a1f6f6252dc19971d5e487f39 for toString(): Call super.hashCode(), due to InternalError("hashCode not designed")
-rw-r--r--src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java6
-rw-r--r--src/jogl/classes/com/jogamp/graph/geom/Outline.java5
2 files changed, 11 insertions, 0 deletions
diff --git a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
index e7c452fb4..bc500d87f 100644
--- a/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
+++ b/src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java
@@ -796,4 +796,10 @@ public class OutlineShape implements Comparable<OutlineShape> {
public final int hashCode() {
throw new InternalError("hashCode not designed");
}
+
+ @Override
+ public String toString() {
+ // Avoid calling this.hashCode() !
+ return getClass().getName() + "@" + Integer.toHexString(super.hashCode());
+ }
}
diff --git a/src/jogl/classes/com/jogamp/graph/geom/Outline.java b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
index 4caf06e5d..075d957ea 100644
--- a/src/jogl/classes/com/jogamp/graph/geom/Outline.java
+++ b/src/jogl/classes/com/jogamp/graph/geom/Outline.java
@@ -278,4 +278,9 @@ public class Outline implements Comparable<Outline> {
public final int hashCode() {
throw new InternalError("hashCode not designed");
}
+ @Override
+ public String toString() {
+ // Avoid calling this.hashCode() !
+ return getClass().getName() + "@" + Integer.toHexString(super.hashCode());
+ }
}