wave N+9: acj EF lambda copy (var3 in Button.builder)

This commit is contained in:
loki5512344 2026-10-03 15:43:31 +02:00
parent 234bc724d5
commit 6d2e4e1fcd
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 26 additions and 1 deletions

24
build-logs/vfbuild24.log Normal file
View file

@ -0,0 +1,24 @@
/storage/aboba/evovis-client/src/main/java/defpackage/acj.java:151: error: local variables referenced from a lambda expression must be final or effectively final
var4 = Button.builder(Component.literal(var3.label().get()), var2x -> var3.action().accept(var0))
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Compilation failed; see the compiler output below.
/storage/aboba/evovis-client/src/main/java/defpackage/acj.java:151: error: local variables referenced from a lambda expression must be final or effectively final
var4 = Button.builder(Component.literal(var3.label().get()), var2x -> var3.action().accept(var0))
^
1 error
* Try:
> Check your code and dependencies to fix the compilation error(s)
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
BUILD FAILED in 6s

View file

@ -148,7 +148,8 @@ public final class acj {
break;
case 1658908485:
var3 = ENTRIES.get(var2);
var4 = Button.builder(Component.literal(var3.label().get()), var2x -> var3.action().accept(var0))
final ack var3f = var3;
var4 = Button.builder(Component.literal(var3.label().get()), var2x -> var3f.action().accept(var0))
.bounds(
0,
0,