summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-03-25 21:13:52 +0000
committerPaul Phillips <paulp@improving.org>2011-03-25 21:13:52 +0000
commit5083559781208d1b8805ab8f5cb773a225436526 (patch)
tree3db74e35dfcfcc6533b7dcd1a55b83f479e8d999 /src/compiler
parent15e491b4d24493bd46bc067b67190246ac852b40 (diff)
downloadscala-5083559781208d1b8805ab8f5cb773a225436526.tar.gz
scala-5083559781208d1b8805ab8f5cb773a225436526.tar.bz2
scala-5083559781208d1b8805ab8f5cb773a225436526.zip
Figured out why -Ydebug has been such a deathtr...
Figured out why -Ydebug has been such a deathtrap for a while. I'm the culprit. Making -Ydebug less likely to kill a compile, no review.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/symtab/Symbols.scala1
-rw-r--r--src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/Symbols.scala b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
index d7f9063ec6..c558610535 100644
--- a/src/compiler/scala/tools/nsc/symtab/Symbols.scala
+++ b/src/compiler/scala/tools/nsc/symtab/Symbols.scala
@@ -59,6 +59,7 @@ trait Symbols extends reflect.generic.Symbols { self: SymbolTable =>
// annotations
private var rawannots: List[AnnotationInfoBase] = Nil
+ def rawAnnotations = rawannots
/* Used in namer to check whether annotations were already assigned or not */
def hasAssignedAnnotations = rawannots.nonEmpty
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
index 4eca9f140e..96ff17e897 100644
--- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
+++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala
@@ -933,7 +933,7 @@ abstract class ClassfileParser {
throw new RuntimeException("Scala class file does not contain Scala annotation")
}
if (settings.debug.value)
- log("" + sym + "; annotations = " + sym.annotations)
+ log("" + sym + "; annotations = " + sym.rawAnnotations)
} else
in.skip(attrLen)