diff options
author | paltherr <paltherr@epfl.ch> | 2004-03-20 20:20:37 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-03-20 20:20:37 +0000 |
commit | 05f04931562a4a25476816fa13a71b26656bf3e5 (patch) | |
tree | dce31ec43b232aa23357e399d58891334d9a0639 /sources/scalac/symtab/classfile/AttributeParser.java | |
parent | 5d81251857c0029f88e6935943368a6bb3d32faf (diff) | |
download | scala-05f04931562a4a25476816fa13a71b26656bf3e5.tar.gz scala-05f04931562a4a25476816fa13a71b26656bf3e5.tar.bz2 scala-05f04931562a4a25476816fa13a71b26656bf3e5.zip |
- Added parse methods in UnPickle
- Removed UnPickle.sourcePath
Diffstat (limited to 'sources/scalac/symtab/classfile/AttributeParser.java')
-rw-r--r-- | sources/scalac/symtab/classfile/AttributeParser.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sources/scalac/symtab/classfile/AttributeParser.java b/sources/scalac/symtab/classfile/AttributeParser.java index ccd802dfd6..be3617e900 100644 --- a/sources/scalac/symtab/classfile/AttributeParser.java +++ b/sources/scalac/symtab/classfile/AttributeParser.java @@ -105,8 +105,12 @@ public class AttributeParser implements ClassfileConstants { switch (attr) { // class attributes case SCALA_ATTR: - new UnPickle(sym, in.nextBytes(attrLen), Name.fromString(in.path)); - return; + try { + UnPickle.parse(parser.global, in.nextBytes(attrLen), sym); + return; + } catch (UnPickle.BadSignature exception) { + throw new RuntimeException(exception.getMessage()); + } case INNERCLASSES_ATTR: int n = in.nextChar(); //System.out.println(sym + " has " + n + " innerclass entries"); |