summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-10-29 14:02:06 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-10-29 14:02:06 +0000
commit223bcfc6abf53a2239692d7299409991b805efaa (patch)
tree18e19fa086e6532a1a5dca3872edc445d253ed0e /src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
parent41b0aefbf54d7cff0c15e634bea1501c55daa172 (diff)
downloadscala-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.scala4
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 =>