Skip to content

Unable to compile using java 25 #3949

Description

@kalakhr

lombok.jar 1.18.42

java --version
openjdk 25 2025-09-16
OpenJDK Runtime Environment (build 25+36-3489)
OpenJDK 64-Bit Server VM (build 25+36-3489, mixed mode, sharing)

`

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class Test003 {
private int code;
private String status;
private String message;
}

public class Test002 {
public static void main(String[] args) throws Exception {
final var x = new Test003();
x.setCode(1);
}
}

`

javac -cp lombok.jar Test002.java Test003.java

Test002.java:5: error: cannot find symbol
x.setCode(1);
^
symbol: method setCode(int)
location: variable x of type Test003
1 error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions