Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed class -> object resident bug.

  • Loading branch information...
commit bf39025ae7fe355585bcdbcfcda3d47b1eb73fe3 1 parent 42aa095
@dragos dragos authored
Showing with 10 additions and 4 deletions.
  1. +10 −4 src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
View
14 src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
@@ -150,10 +150,16 @@ abstract class GenJVM extends SubComponent {
addModuleInstanceField;
addStaticInit(jclass);
- if (c.symbol.linkedClass == NoSymbol && isTopLevelModule(c.symbol))
- dumpMirrorClass;
- else
- log("No mirror class for module with linked class: " + c.symbol.fullNameString);
+ if (isTopLevelModule(c.symbol)) {
+ if (c.symbol.linkedClass == NoSymbol)
+ dumpMirrorClass;
+ else if (c.symbol.linkedClass != NoSymbol &&
+ !currentRun.compiles(c.symbol.linkedClass)) {
+ log("Dumping mirror class for " + c.symbol + " even though linked class exists, but is not compiled in this run");
+ dumpMirrorClass;
+ } else
+ log("No mirror class for module with linked class: " + c.symbol.fullNameString);
+ }
}
clasz.fields foreach genField;
Please sign in to comment.
Something went wrong with that request. Please try again.