diff options
author | Sven Gothel <[email protected]> | 2014-08-28 06:03:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-08-28 06:03:17 +0200 |
commit | c28b5eb2bb3db29dcdc51b391a4d9b236eb11885 (patch) | |
tree | e73ad0f39a1dbdf9ce51593f59873b745521e3d6 /src/jogl/classes/com/jogamp/graph | |
parent | e3226d16fc147dcad77e172538d09b62eee7e6d9 (diff) |
Fix commit b5910f18f0b82a8a1f6f6252dc19971d5e487f39 for toString(): Call super.hashCode(), due to InternalError("hashCode not designed")
Diffstat (limited to 'src/jogl/classes/com/jogamp/graph')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java | 6 | ||||
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/geom/Outline.java | 5 |
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()); + } } |