From dd16261a408ae0bf06c3801cf35f3642aa24e877 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 1 Dec 2011 12:51:34 +0100 Subject: Fix to the fix of AnnotationInfos. Turns out that forcing AnnotationInfo on .pos is too eager. Protected by if (forced) now. --- src/compiler/scala/reflect/internal/AnnotationInfos.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') 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 -- cgit v1.2.3