File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/main/java/de/oceanlabs/mcp/mcinjector/adaptors Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,11 @@ else if (tmp.getType() != AbstractInsnNode.LABEL)
197
197
}
198
198
199
199
private boolean isSynthetic (MethodNode mn ){
200
- if ((mn .access & Opcodes .ACC_SYNTHETIC ) != 0 ) return true ;
200
+ 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
+ }
201
205
202
206
//check for special case pursuant to JLS 13.1.7
203
207
//which specifies that are the one and only proper methods that may be generated and not be marked synthetic
You can’t perform that action at this time.
0 commit comments