diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-08 02:07:34 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-08 02:32:09 -0800 |
commit | 42f90593538a16a285a9bb605da9fd9116e71a57 (patch) | |
tree | b597c3a9c031eb08ff2f2f3e155894637fda5f9c /src/compiler | |
parent | 3da50752476ca87e90ad0d2906ee783507b0199c (diff) | |
download | scala-42f90593538a16a285a9bb605da9fd9116e71a57.tar.gz scala-42f90593538a16a285a9bb605da9fd9116e71a57.tar.bz2 scala-42f90593538a16a285a9bb605da9fd9116e71a57.zip |
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.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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( |