diff options
author | Paul Phillips <paulp@improving.org> | 2012-01-05 11:38:44 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-01-05 12:06:52 -0800 |
commit | fe94bc7a144921f6c3dcbedbedd2c5c884a77bbd (patch) | |
tree | 3610cfc3662e4b1cd859129b1190f8a6e7d550b5 /test/files/run | |
parent | be46e487134305edae065de00582928c120bcfbb (diff) | |
download | scala-fe94bc7a144921f6c3dcbedbedd2c5c884a77bbd.tar.gz scala-fe94bc7a144921f6c3dcbedbedd2c5c884a77bbd.tar.bz2 scala-fe94bc7a144921f6c3dcbedbedd2c5c884a77bbd.zip |
Don't mark mixed in methods as bridges.
Sometime during the signature-related chaos before 2.9.1,
genjvm was modified to pin ACC_BRIDGE onto mixed-in methods.
This isn't necessary to suppress the signature (which has
already happened at that point) and has deleterious effects
since many tools ignore bridge methods. Review by @odersky.
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/mixin-bridge-methods.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/run/mixin-bridge-methods.scala b/test/files/run/mixin-bridge-methods.scala new file mode 100644 index 0000000000..e0340ebb12 --- /dev/null +++ b/test/files/run/mixin-bridge-methods.scala @@ -0,0 +1,14 @@ +trait Foo { + def getFoo() = "foo" +} + +class Sub extends Foo { + def getBar() = "bar" +} + +object Test { + def main(args: Array[String]): Unit = { + val ms = classOf[Sub].getDeclaredMethods + assert(ms forall (x => !x.isBridge), ms mkString " ") + } +} |