Skip to content
Browse files

Merge pull request #2550 from scalamacros/2.10.x

[nomaster] unbreaks test.bc
  • Loading branch information...
2 parents 4f8c306 + 6114038 commit e927cbc39a081dc0eeddc1bc264bcbe3f9b3c7d0 @retronym retronym committed May 17, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/reflect/scala/reflect/runtime/JavaMirrors.scala
View
3 src/reflect/scala/reflect/runtime/JavaMirrors.scala
@@ -287,6 +287,9 @@ private[reflect] trait JavaMirrors extends internal.SymbolTable with api.JavaUni
// if (!symbol.isMutable) ErrorSetImmutableField(symbol)
jfield.set(receiver, value)
}
+ // this dummy method is necessary to prevent the optimizer from stripping off ErrorSetImmutableField
+ // which would break binary compatibility with 2.10.0
+ private def dummy(symbol: Symbol) = ErrorSetImmutableField(symbol)
override def toString = s"field mirror for ${symbol.fullName} (bound to $receiver)"
}

0 comments on commit e927cbc

Please sign in to comment.
Something went wrong with that request. Please try again.