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
Describe the bug
"mvn clean compile" will throw an error if, in a method, there is both a variable declared with lombok.val and a call to the default implementation of a interface
To Reproduce
package com.example;
import lombok.val;
public class class1 implements interface1 {
void method1() {
// If you comment any of the following two lines, the project compiles normally.
// Otherwise, "mvn clean compile" will report the following error:
// Compilation failure
// Lombok visitor handler class lombok.javac.handlers.HandleVal failed:
// java.lang.AssertionError
val string1 = "s";
interface1.super.defaultMethod();
}
}
public interface interface1 {
default void defaultMethod() {
}
}
The text was updated successfully, but these errors were encountered:
phommy
changed the title
[BUG] lombok.val causes compilation failure when used with default implementation of a interface
[BUG] lombok.val causes compilation failure when used with default implementation of an interface method
Aug 10, 2022
Rawi01
added a commit
to Rawi01/lombok
that referenced
this issue
Oct 30, 2022
Describe the bug
"mvn clean compile" will throw an error if, in a method, there is both a variable declared with lombok.val and a call to the default implementation of a interface
To Reproduce
demo.zip
Expected behavior
Successful build.
Version info:
The text was updated successfully, but these errors were encountered: