Mercurial > hg > truffle
diff visualizer/Data/src/com/sun/hotspot/igv/data/InputMethod.java @ 5789:eca97d497f5d
make igv more resilient to errors in the bytecode input format
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 06 Jul 2012 17:18:41 +0200 |
parents | 015fb895586b |
children | be428fe2d86c |
line wrap: on
line diff
--- a/visualizer/Data/src/com/sun/hotspot/igv/data/InputMethod.java Fri Jul 06 17:17:34 2012 +0200 +++ b/visualizer/Data/src/com/sun/hotspot/igv/data/InputMethod.java Fri Jul 06 17:18:41 2012 +0200 @@ -121,7 +121,11 @@ String tmpName = s.substring(spaceIndex + 1, s.length()); int number = -1; - number = Integer.parseInt(numberString); + try { + number = Integer.parseInt(numberString); + } catch (NumberFormatException e) { + // nothing to do... + } // assert correct order of bytecodes assert number > oldNumber;