Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ public SimpleList<MethodNode> createShadows() {
}

private MethodNode createShadow(MethodNode mn) {
int shadowAccess = (mn.access & ~Opcodes.ACC_NATIVE) | Opcodes.ACC_SYNTHETIC;
// Start with the original method's access flags
// then, clear the ACC_NATIVE and ACC_VARARGS flags
// and set ACC_SYNTHETIC flag
int shadowAccess = (mn.access & ~Opcodes.ACC_NATIVE & ~Opcodes.ACC_VARARGS) | Opcodes.ACC_SYNTHETIC;
MethodNode shadow = new MethodNode(
GaletteTransformer.ASM_VERSION,
shadowAccess,
Expand Down