Add synchronized modifier to runtime enhanced enum methods
This commit is contained in:
parent
79c17cb542
commit
065ebd748a
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ public class RuntimeEnumExtender implements ILaunchPluginService {
|
||||||
|
|
||||||
values.access &= values.access & ~Opcodes.ACC_FINAL; //Strip the final so JITer doesn't inline things.
|
values.access &= values.access & ~Opcodes.ACC_FINAL; //Strip the final so JITer doesn't inline things.
|
||||||
|
|
||||||
|
mtd.access |= Opcodes.ACC_SYNCHRONIZED;
|
||||||
mtd.instructions.clear();
|
mtd.instructions.clear();
|
||||||
InstructionAdapter ins = new InstructionAdapter(mtd);
|
InstructionAdapter ins = new InstructionAdapter(mtd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue