diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-10-29 14:02:06 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-10-29 14:02:06 +0000 |
commit | 223bcfc6abf53a2239692d7299409991b805efaa (patch) | |
tree | 18e19fa086e6532a1a5dca3872edc445d253ed0e /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | |
parent | 41b0aefbf54d7cff0c15e634bea1501c55daa172 (diff) | |
download | scala-223bcfc6abf53a2239692d7299409991b805efaa.tar.gz scala-223bcfc6abf53a2239692d7299409991b805efaa.tar.bz2 scala-223bcfc6abf53a2239692d7299409991b805efaa.zip |
AnnotationInfo.pos no longer in constructor.
Diffstat (limited to 'src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index 389de79d47..940a8e223b 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -778,7 +778,7 @@ abstract class ClassfileParser { this.hasMeta = true // Attribute on methods of java annotation classes when that method has a default case nme.AnnotationDefaultATTR => - sym.addAnnotation(AnnotationInfo(definitions.AnnotationDefaultAttr.tpe, List(), List(), NoPosition)) + sym.addAnnotation(AnnotationInfo(definitions.AnnotationDefaultAttr.tpe, List(), List())) in.skip(attrLen) // Java annotatinos on classes / methods / fields with RetentionPolicy.RUNTIME case nme.RuntimeAnnotationATTR => @@ -848,7 +848,7 @@ abstract class ClassfileParser { } } if (hasError) None - else Some(AnnotationInfo(attrType, List(), nvpairs.toList, NoPosition)) + else Some(AnnotationInfo(attrType, List(), nvpairs.toList)) } catch { case f: FatalError => throw f // don't eat fatal errors, they mean a class was not found case ex: Throwable => |