We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1689118 commit 3974358Copy full SHA for 3974358
src/main/java/de/oceanlabs/mcp/mcinjector/adaptors/ApplyMap.java
@@ -197,7 +197,11 @@ else if (tmp.getType() != AbstractInsnNode.LABEL)
197
}
198
199
private boolean isSynthetic(MethodNode mn){
200
- if ((mn.access & Opcodes.ACC_SYNTHETIC) != 0) return true;
+ if ((mn.access & Opcodes.ACC_SYNTHETIC) != 0) {
201
+ //de-lambdaified methods may be synthetic but actually appear in sourcecode so their args still get renamed
202
+ //such methods are private and start with lambda$
203
+ return (mn.access & Opcodes.ACC_PRIVATE) == 0 || !mn.name.startsWith("lambda$");
204
+ }
205
206
//check for special case pursuant to JLS 13.1.7
207
//which specifies that are the one and only proper methods that may be generated and not be marked synthetic
0 commit comments