summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/classfile/ConstantPool.java
diff options
context:
space:
mode:
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;