diff options
Diffstat (limited to 'sources/scalac/symtab/classfile/ConstantPool.java')
-rw-r--r-- | sources/scalac/symtab/classfile/ConstantPool.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scalac/symtab/classfile/ConstantPool.java b/sources/scalac/symtab/classfile/ConstantPool.java index a4113ed9e7..6cd21b32c6 100644 --- a/sources/scalac/symtab/classfile/ConstantPool.java +++ b/sources/scalac/symtab/classfile/ConstantPool.java @@ -78,7 +78,7 @@ public class ConstantPool implements ClassfileConstants { * corresponding type; otherwise return a class definition with given name */ protected Object classOrType(Name name) { - if ((name.sub(0) == '[') || (name.sub(name.length() - 1) == ';')) { + if ((name.charAt(0) == '[') || (name.charAt(name.length() - 1) == ';')) { byte[] ascii = name.toAscii(); return sigparser.sigToType(ascii, 0, ascii.length); } else |