Commit 7cb9bea1 authored by pcregut's avatar pcregut

Limited size of labels.

parent 816a4f98
......@@ -200,7 +200,8 @@ public class Label {
*/
@Override
public String toString() {
StringBuilder result = new StringBuilder('L' + System.identityHashCode(this));
// Bug 316426 - Limited to not too large positive integers.
StringBuilder result = new StringBuilder('L' + (System.identityHashCode(this) & (Integer.MAX_VALUE >> 3)));
if ((status & RESOLVED) > 0) {
result.append(" (offset 0x" + Integer.toHexString(position) + ", line " + line + ")");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment