Strip the FINAL flag from all targets

This commit is contained in:
Jordin committed 2020-01-03 22:49:36 -04:00
1 parent b43aaeb356
commit cf5a44020a
1 file changed
+2 -2
@@ -464,8 +464,8 @@ class MixinApplicatorStandard {
if (target != null) {
Annotations.merge(shadow, target);
// Strip the FINAL flag from @Mutable non-private fields
if (entry.getValue().isDecoratedMutable() && !Bytecode.hasFlag(target, Opcodes.ACC_PRIVATE)) {
// Strip the FINAL flag from @Mutable fields
if (entry.getValue().isDecoratedMutable()) {
target.access &= ~Opcodes.ACC_FINAL;
}
}