diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2007-09-11 12:11:19 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2007-09-11 12:11:19 +0000 |
commit | 7b405d5b02050659ab2801cafd6658e92f4e66b5 (patch) | |
tree | fdbdbd96ba6460610d3ef8837b8d76d37fb4fb48 /src | |
parent | b907c8eb599b53d83b2494e63a928182ec97f2eb (diff) | |
download | scala-7b405d5b02050659ab2801cafd6658e92f4e66b5.tar.gz scala-7b405d5b02050659ab2801cafd6658e92f4e66b5.tar.bz2 scala-7b405d5b02050659ab2801cafd6658e92f4e66b5.zip |
Added 'final' attribute to ServialVersionUID fi...
Added 'final' attribute to ServialVersionUID fields (ticket #62).
Diffstat (limited to 'src')
-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 88f635f79d..d8a8d8b2c9 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -495,7 +495,7 @@ abstract class GenJVM extends SubComponent { serialVUID match { case Some(value) => val fieldName = "serialVersionUID" - jclass.addNewField(JAccessFlags.ACC_STATIC | JAccessFlags.ACC_PUBLIC, + jclass.addNewField(JAccessFlags.ACC_STATIC | JAccessFlags.ACC_PUBLIC | JAccessFlags.ACC_FINAL, fieldName, JType.LONG) clinit.emitPUSH(value) |