[JDK26] javac 26 updated how var declarations are stored. Fixed the problem and added a test to confirm.

This commit is contained in:
Reinier Zwitserloot committed 2026-04-08 01:35:50 +02:00
1 parent 87a75b103f
commit bc86bfde63
5 files changed
+60 -5

No files matched your search

@@ -0,0 +1,12 @@
// version 14:
import lombok.val;
public class ValUndenotable {
public void method(int arg) {
val x = new Object() {
void foo() {
}
};
x.foo();
}
}