summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-05-31 13:02:27 +0000
committermihaylov <mihaylov@epfl.ch>2004-05-31 13:02:27 +0000
commitb1a561d119bca6f046fec81f493992bb9c45e40f (patch)
tree48493fb9cc439bf175eb075c863f79ff8cfd06cb
parenta1ae43c145218eed2c3e13b547a68bd05f940580 (diff)
downloadscala-b1a561d119bca6f046fec81f493992bb9c45e40f.tar.gz
scala-b1a561d119bca6f046fec81f493992bb9c45e40f.tar.bz2
scala-b1a561d119bca6f046fec81f493992bb9c45e40f.zip
- Escape the printed value of string constants ...
- Escape the printed value of string constants to prevent it from changing the formatting - new lines, different colours (e.g. in scala.Console), etc.
-rw-r--r--sources/scalac/symtab/classfile/UnPickle.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/scalac/symtab/classfile/UnPickle.java b/sources/scalac/symtab/classfile/UnPickle.java
index cbad5db7d2..6f6866782e 100644
--- a/sources/scalac/symtab/classfile/UnPickle.java
+++ b/sources/scalac/symtab/classfile/UnPickle.java
@@ -593,8 +593,8 @@ public class UnPickle implements Kinds, Modifiers, EntryTags, TypeTags {
switch (tag) {
case TERMname:
case TYPEname:
- out.print(" " +
- SourceRepresentation.ascii2string(bytes, bp, len));
+ String name = SourceRepresentation.ascii2string(bytes, bp, len);
+ out.print(" " + SourceRepresentation.escape(name));
bp = end;
break;
case NONEsym: