Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Exception occurs using annotation implicitcreation to create setter and getter method #2162

Closed
ChanaLii opened this issue Jun 26, 2019 · 3 comments

Comments

@ChanaLii
Copy link

ChanaLii commented Jun 26, 2019

Describe the bug
Exception occurs using annotation implicitcreation to create setter and getter method

To Reproduce
using this block of code occured error log when compiler
@Setter @Getter public class TaSellerVo { /** * user id */ private Integer id; }

using this block of code it's working
@Setter @Getter public class TaSellerVo { private Integer id; }

Expected behavior
compilation successful

Version info (please complete the following information):

  • Lombok version
    <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.18.6</version> </dependency>

  • Platform
    javaVersion:jdk7
    compilation log:
    Error:java: Lombok annotation handler class lombok.javac.handlers.HandleSetter failed on C:\MyTools\codeCloud\xxxxxxxxxxxxxxxxxxxxxxxx.java: java.lang.NoSuchMethodError: java.util.Map.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

@rspilker
Copy link
Collaborator

Sorry. We shouldn't have used Map.putIfAbsent, since it was only introduced in 1.8.

@rspilker
Copy link
Collaborator

Duplicate of #2066, already fixed in 1.18.8.

@ChanaLii
Copy link
Author

Sorry. We shouldn't have used Map.putIfAbsent, since it was only introduced in 1.8.

get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants