summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-12-01 12:51:34 +0100
committerMartin Odersky <odersky@gmail.com>2011-12-01 12:51:34 +0100
commitdd16261a408ae0bf06c3801cf35f3642aa24e877 (patch)
tree7364e7e7275dabc0720b46928e2fe739b1d5575e /src
parenteb5e621d5130ceedfe0b88c2b5580438aaf98a4d (diff)
downloadscala-dd16261a408ae0bf06c3801cf35f3642aa24e877.tar.gz
scala-dd16261a408ae0bf06c3801cf35f3642aa24e877.tar.bz2
scala-dd16261a408ae0bf06c3801cf35f3642aa24e877.zip
Fix to the fix of AnnotationInfos.
Turns out that forcing AnnotationInfo on .pos is too eager. Protected by if (forced) now.
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/reflect/internal/AnnotationInfos.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/reflect/internal/AnnotationInfos.scala b/src/compiler/scala/reflect/internal/AnnotationInfos.scala
index 762921f553..665e33e783 100644
--- a/src/compiler/scala/reflect/internal/AnnotationInfos.scala
+++ b/src/compiler/scala/reflect/internal/AnnotationInfos.scala
@@ -142,7 +142,7 @@ trait AnnotationInfos extends api.AnnotationInfos { self: SymbolTable =>
// We should always be able to print things without forcing them.
override def toString = if (forced) forcedInfo.toString else "@<?>"
- override def pos: Position = forcedInfo.pos
+ override def pos: Position = if (forced) forcedInfo.pos else NoPosition
}
/** Typed information about an annotation. It can be attached to either