Tue, 02 Jun 2015 10:40:10 +0200
8081603: erroneous dot file generated from Nashorn --print-code
Summary: Emit a dot label string-conformant line break instead of a hard one to avoid strings ranging across an EOL.
Reviewed-by: attila, lagergren, sundar
src/jdk/nashorn/internal/ir/debug/NashornTextifier.java | file | annotate | diff | comparison | revisions |
1.1 --- a/src/jdk/nashorn/internal/ir/debug/NashornTextifier.java Tue Jun 02 14:53:05 2015 +0530 1.2 +++ b/src/jdk/nashorn/internal/ir/debug/NashornTextifier.java Tue Jun 02 10:40:10 2015 +0200 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -1109,7 +1109,7 @@ 1.11 } 1.12 final String ex = catches.get(node); 1.13 if (ex != null) { 1.14 - sb.append("*** CATCH: ").append(ex).append(" ***\n"); 1.15 + sb.append("*** CATCH: ").append(ex).append(" ***\\l"); 1.16 } 1.17 sb.append(c); 1.18 sb.append("\"]\n");