Mercurial > hg > truffle
changeset 6310:b2b0ec1a6a39
IGV : avoid collisions between node's properties and some reserved properties of the IGV
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Mon, 03 Sep 2012 15:13:28 +0200 |
parents | 6f8b6fc03c96 |
children | 9b017f213df8 |
files | src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java Mon Sep 03 15:12:28 2012 +0200 +++ b/src/share/tools/IdealGraphVisualizer/Data/src/com/sun/hotspot/igv/data/serialization/BinaryParser.java Mon Sep 03 15:13:28 2012 +0200 @@ -525,6 +525,7 @@ } } + @Override public GraphDocument parse() throws IOException { GraphDocument doc = new GraphDocument(); folderStack.push(doc); @@ -659,6 +660,9 @@ int propCount = readShort(); for (int j = 0; j < propCount; j++) { String key = readPoolObject(String.class); + if (key.equals("hasPredecessor") || key.equals("name") || key.equals("class")) { + key = "!data." + key; + } Object value = readPropertyObject(); properties.setProperty(key, value != null ? value.toString() : "null"); props.put(key, value);