Lombok generated @Data(staticConstructor="of") can generated code can build and run my application, but continue have syntax error shows no method

Answered

Lombok generated @Data(staticConstructor="of") can generated code can build and run my application, but continue have syntax error shows no method

 

That's basically all. I am struggling with this. Please help

4
5 comments

I have the same issue after I updated to the new version.

0

Hitting this with IntelliJ 2023.1 and the Apache Pulsar code base. To reproduce, "git clone https://github.com/apache/pulsar" . After a while the AuthData.of method generated with the "@Data(staticConstructor = "of")" annotation will show up as error state.

0

Please refer to https://stackoverflow.com/a/75892144/2975621, I fixed this by added 

@RequiredArgsConstructor(staticName = "of")
0

This seems to be fixed in related https://youtrack.jetbrains.com/issue/IDEA-313324, fix should be available in 2023.1.1

0

Please sign in to leave a comment.