wave N+8: aci EF lambda copies (var2/var3 in register)

This commit is contained in:
loki5512344 2026-10-03 15:42:23 +02:00
parent f0a295d251
commit 234bc724d5
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 34 additions and 2 deletions

30
build-logs/vfbuild23.log Normal file
View file

@ -0,0 +1,30 @@
/storage/aboba/evovis-client/src/main/java/defpackage/aci.java:92: error: local variables referenced from a lambda expression must be final or effectively final
() -> aqr.isActive(var2.id()),
^
/storage/aboba/evovis-client/src/main/java/defpackage/aci.java:93: error: local variables referenced from a lambda expression must be final or effectively final
var2x -> sweepTo(var2.id(), var3)
^
/storage/aboba/evovis-client/src/main/java/defpackage/aci.java:93: error: local variables referenced from a lambda expression must be final or effectively final
var2x -> sweepTo(var2.id(), var3)
^
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.
3 errors
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/aci.java:92: error: local variables referenced from a lambda expression must be final or effectively final
() -> aqr.isActive(var2.id()),
^
3 errors
* 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 7s

View file

@ -82,6 +82,8 @@ public final class aci {
case 747535734: case 747535734:
var2 = (aqp)var0.get(var1); var2 = (aqp)var0.get(var1);
var3 = "evolution:background/" + var2.id(); var3 = "evolution:background/" + var2.id();
final aqp var2f = var2;
final String var3f = var3;
acj.register( acj.register(
new ack( new ack(
var3, var3,
@ -89,8 +91,8 @@ public final class aci {
(-1163634037 ^ 1163634037) + ((-1163634037 & 1163634037) << 1) + var1, (-1163634037 ^ 1163634037) + ((-1163634037 & 1163634037) << 1) + var1,
var2.icon(), var2.icon(),
var2::label, var2::label,
() -> aqr.isActive(var2.id()), () -> aqr.isActive(var2f.id()),
var2x -> sweepTo(var2.id(), var3) var2x -> sweepTo(var2f.id(), var3f)
) )
); );
var1++; var1++;