diff options
author | mihaylov <mihaylov@epfl.ch> | 2006-08-16 08:30:11 +0000 |
---|---|---|
committer | mihaylov <mihaylov@epfl.ch> | 2006-08-16 08:30:11 +0000 |
commit | 0cad3ffca732704883511261739f99256f0091bf (patch) | |
tree | 2efcba857eed2f1afcc878fd6f214fb28b7360bf | |
parent | 67bdd4e52b5a530f7cd56ef7f04c59a6e4a52635 (diff) | |
download | scala-0cad3ffca732704883511261739f99256f0091bf.tar.gz scala-0cad3ffca732704883511261739f99256f0091bf.tar.bz2 scala-0cad3ffca732704883511261739f99256f0091bf.zip |
Fixed bug #676
-rw-r--r-- | src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala | 3 |
1 files changed, 2 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 4c6bc8a2f6..27e347c66e 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -701,7 +701,8 @@ abstract class GenJVM extends SubComponent { style match { case Dynamic => - if (method.owner.hasFlag(Flags.INTERFACE)) + if (method.owner.hasFlag(Flags.INTERFACE) || + method.owner.isSubClass(definitions.AttributeClass)) jcode.emitINVOKEINTERFACE(owner, javaName(method), javaType(method).asInstanceOf[JMethodType]) |