You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the private field has javadoc then the javac (for Java 6) compilation fails.
The steps to reproduce it:
Have your code running with Java 6.
Use the latest lombok version (however the issue occurs with previous versions also)
Create a class like this:
import lombok.Getter;
@Getter
public class TestLombok {
/**
* The currency
*/
private String currency;
}
When building the project (I use intellij Build tool) I get the following error: Error:java: error: Lombok annotation handler class lombok.javac.handlers.HandleGetter failed on C:\Users\C60935\TestLombok\lombok\src\main\java\TestLombok.java: java.lang.NoSuchMethodError: java.util.Map.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
This happens because in Java 6 the Map class doesn't contain the method putIfAbsent.
The result is that it's not possible to use javadoc for fields when using Java 6.
The text was updated successfully, but these errors were encountered:
tiagocorreia86
changed the title
Java 6 compilation error when field has comment
Java 6 compilation error when field has javadoc
Mar 14, 2019
If the private field has javadoc then the javac (for Java 6) compilation fails.
The steps to reproduce it:
When building the project (I use intellij Build tool) I get the following error:
Error:java: error: Lombok annotation handler class lombok.javac.handlers.HandleGetter failed on C:\Users\C60935\TestLombok\lombok\src\main\java\TestLombok.java: java.lang.NoSuchMethodError: java.util.Map.putIfAbsent(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
This happens because in Java 6 the Map class doesn't contain the method putIfAbsent.
The result is that it's not possible to use javadoc for fields when using Java 6.
The text was updated successfully, but these errors were encountered: