diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala index bb3a0f58aa..3cf8b8f25a 100644 --- a/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala +++ b/src/compiler/scala/tools/nsc/symtab/classfile/ClassfileParser.scala @@ -658,8 +658,10 @@ abstract class ClassfileParser { if ((sourceFile0 ne null) && (clazz.sourceFile eq null)) { clazz.sourceFile = sourceFile0 } - if (!inIDE || staticModule.moduleClass != NoSymbol) + // XXX: removing only in IDE test. Also needs to be tested in the build compiler. + if (staticModule.moduleClass != NoSymbol) { staticModule.moduleClass.sourceFile = clazz.sourceFile + } } case nme.AnnotationDefaultATTR => sym.attributes = |