summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/classfile/ConstantPool.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-13 17:39:57 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-13 17:39:57 +0000
commit417033fd0a33af000b95623f1c3d0f9e90fbf6ff (patch)
tree429018088aa48df0f06f5bbe875277dab60ac790 /sources/scalac/symtab/classfile/ConstantPool.java
parentf893e29c2f7a6fb00210d76933ac94e86d924aa6 (diff)
downloadscala-417033fd0a33af000b95623f1c3d0f9e90fbf6ff.tar.gz
scala-417033fd0a33af000b95623f1c3d0f9e90fbf6ff.tar.bz2
scala-417033fd0a33af000b95623f1c3d0f9e90fbf6ff.zip
- Replaced byte array in Name by a string
Diffstat (limited to 'sources/scalac/symtab/classfile/ConstantPool.java')
-rw-r--r--sources/scalac/symtab/classfile/ConstantPool.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/symtab/classfile/ConstantPool.java b/sources/scalac/symtab/classfile/ConstantPool.java
index 6cd21b32c6..8d80446342 100644
--- a/sources/scalac/symtab/classfile/ConstantPool.java
+++ b/sources/scalac/symtab/classfile/ConstantPool.java
@@ -79,7 +79,7 @@ public class ConstantPool implements ClassfileConstants {
*/
protected Object classOrType(Name name) {
if ((name.charAt(0) == '[') || (name.charAt(name.length() - 1) == ';')) {
- byte[] ascii = name.toAscii();
+ byte[] ascii = SourceRepresentation.string2ascii(name.toString());
return sigparser.sigToType(ascii, 0, ascii.length);
} else
return name;