diff options
author | Martin Odersky <odersky@gmail.com> | 2013-03-15 18:48:20 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-03-15 18:48:20 +0100 |
commit | 1d029f5f8f90a909ed140f7ef5cf656fafd9fc27 (patch) | |
tree | d7ed9423ebbd7b700f49c41f59da80963d68a6cf /src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | |
parent | 0d2fd0fd49fb1b6d4ab344ae32da493b36c99ba7 (diff) | |
download | dotty-1d029f5f8f90a909ed140f7ef5cf656fafd9fc27.tar.gz dotty-1d029f5f8f90a909ed140f7ef5cf656fafd9fc27.tar.bz2 dotty-1d029f5f8f90a909ed140f7ef5cf656fafd9fc27.zip |
Various fixes to make classfile loading work.
Can now read and display info of verious classfiles as listed in the showClass test. Great end of the week!
Diffstat (limited to 'src/dotty/tools/dotc/core/pickling/ClassfileParser.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/pickling/ClassfileParser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala index 1b2672c4a..51be5b329 100644 --- a/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala +++ b/src/dotty/tools/dotc/core/pickling/ClassfileParser.scala @@ -178,10 +178,10 @@ class ClassfileParser( case Some(entry) if !isStatic(entry.jflags) => val mt @ MethodType(paramnames, paramtypes) = info denot.info = mt.derivedMethodType(paramnames.tail, paramtypes.tail, mt.resultType) - + case _ => } setPrivateWithin(denot, jflags) - denot.info = parseAttributes(sym, info) + denot.info = depoly(parseAttributes(sym, info)) if ((denot is Flags.Method) && (jflags & JAVA_ACC_VARARGS) != 0) denot.info = arrayToRepeated(denot.info) |