Skip to content

Commit d31094f

Browse files
committed
Revert "Don't emit mixin forwarders as final"
This reverts commit 700eea7. Forward port of scala/scala@96f844e
1 parent c4531d4 commit d31094f

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

compiler/src/dotty/tools/backend/jvm/BTypesFromSymbols.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ class BTypesFromSymbols[I <: DottyBackendInterface](val int: I, val frontendAcce
298298
// without having to provide any implementations, but that is an
299299
// illegal combination of modifiers at the bytecode level so
300300
// suppress final if abstract if present.
301-
&& !sym.isOneOf(AbstractOrTrait)
302-
// Mixin forwarders are bridges and can be final, but final bridges confuse some frameworks
303-
&& !sym.is(Bridge), ACC_FINAL)
301+
&& !sym.isOneOf(AbstractOrTrait), ACC_FINAL)
304302
.addFlagIf(sym.isStaticMember, ACC_STATIC)
305303
.addFlagIf(sym.is(Bridge), ACC_BRIDGE | ACC_SYNTHETIC)
306304
.addFlagIf(sym.is(Artifact), ACC_SYNTHETIC)

tests/run/t11485.scala

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)