summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIulian Dragos <jaguarul@gmail.com>2012-02-21 15:04:28 +0100
committerPaul Phillips <paulp@improving.org>2012-02-21 15:53:11 -0800
commit0b9a0e0d09f0769f4e95e2473821f941525f5702 (patch)
tree2a9517a65fedc437e71eed124422f1a1aeee8c12
parent280cffc14e80099ca84eb58050a516e6d550800a (diff)
downloadscala-0b9a0e0d09f0769f4e95e2473821f941525f5702.tar.gz
scala-0b9a0e0d09f0769f4e95e2473821f941525f5702.tar.bz2
scala-0b9a0e0d09f0769f4e95e2473821f941525f5702.zip
Added the SYNTHETIC flag for BRIDGE methods. The Eclipse Java compiler complains about duplicate methods otherwise.
-rw-r--r--src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala2
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 5299e5ff26..70b77a5687 100644
--- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
+++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala
@@ -1872,7 +1872,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with
if (sym.isInterface) ACC_INTERFACE else 0,
if (sym.isFinal && !sym.enclClass.isInterface && !sym.isClassConstructor) ACC_FINAL else 0,
if (sym.isStaticMember) ACC_STATIC else 0,
- if (sym.isBridge) ACC_BRIDGE else 0,
+ if (sym.isBridge) ACC_BRIDGE | ACC_SYNTHETIC else 0,
if (sym.isClass && !sym.isInterface) ACC_SUPER else 0,
if (sym.isVarargsMethod) ACC_VARARGS else 0
)