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/curve | |
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/curve')
-rw-r--r-- | src/jogl/classes/com/jogamp/graph/curve/OutlineShape.java | 6 |
1 files changed, 6 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()); + } } |