diff options
author | paltherr <paltherr@epfl.ch> | 2004-04-04 13:04:27 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-04-04 13:04:27 +0000 |
commit | 8cbb56700d3de57b9d4d0f8bc4afd5e6240e997d (patch) | |
tree | dc4fd9408968db389db5ba48119612f939801142 /sources/scalac/symtab/classfile | |
parent | 1731e5bd877af1468cb0d43776607bc3a8d2e224 (diff) | |
download | scala-8cbb56700d3de57b9d4d0f8bc4afd5e6240e997d.tar.gz scala-8cbb56700d3de57b9d4d0f8bc4afd5e6240e997d.tar.bz2 scala-8cbb56700d3de57b9d4d0f8bc4afd5e6240e997d.zip |
- Changed to use Symbol.newErrorClass
Diffstat (limited to 'sources/scalac/symtab/classfile')
-rw-r--r-- | sources/scalac/symtab/classfile/Signatures.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sources/scalac/symtab/classfile/Signatures.java b/sources/scalac/symtab/classfile/Signatures.java index cd724af2b7..3ac965ab03 100644 --- a/sources/scalac/symtab/classfile/Signatures.java +++ b/sources/scalac/symtab/classfile/Signatures.java @@ -94,9 +94,7 @@ public class Signatures { Name name = Name.fromAscii(in.buf, start, current-start).toTypeName(); Symbol clasz = owner.members().lookup(name); if (!clasz.isClass()) { - Symbol symbol = owner.newClass(Position.NOPOS, 0, name); - symbol.setInfo(Type.ErrorType); - symbol.allConstructors().setInfo(Type.ErrorType); + Symbol symbol = owner.newErrorClass(name); error("could not find class " + symbol.staticType()); if (clasz.isNone()) owner.members().enterNoHide(symbol); clasz = symbol; |