mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
[JDK26] javac 26 updated how var declarations are stored. Fixed the problem and added a test to confirm.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user