From 42f90593538a16a285a9bb605da9fd9116e71a57 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 8 Mar 2012 02:07:34 -0800 Subject: Wider net on final fields. This should exclude everything mutable. I'm open to suggestions as to what sort of final fields we can safely allow beyond these, if any. --- src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index bb7edcfedd..694aa413cb 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -1905,7 +1905,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with ((sym.rawflags & (Flags.FINAL | Flags.MODULE)) != 0) && !sym.enclClass.isInterface && !sym.isClassConstructor - && (sym.isLazy || sym.isPrivate || !sym.isMutable) // fix for SI-3569, is it sufficient? + && !sym.isMutable // fix for SI-3569, it is too broad? ) mkFlags( -- cgit v1.2.3