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
IntelliJ IDEA 2016.3
Build #IU-163.7743.44, built on November 17, 2016
JRE: 1.8.0_112-release-408-b2 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
IntelliJ Lombok plugin Version: 0.13.16
to reproduce, I use the following code:
package ch;
import static ch.LombokBug.Inner.foo;
import org.junit.Test;
import lombok.AllArgsConstructor;
public class LombokBug {
@Test
public void test() {
foo();
}
@AllArgsConstructor
static class Inner {
static void foo() {}
}
}
what I get:
in the editor, everything looks fine (no compilation issue marked!)
however, if I want to execute the test, the compiler fails with following message (and hence test is not even executed):
Error:(14, 10) java: cannot find symbol
symbol: class AllArgsConstructor
location: class ch.LombokBug
what I expect:
same result as with following code, i.e. test passes
package ch;
//import static ch.LombokBug.Inner.foo;
import org.junit.Test;
import lombok.AllArgsConstructor;
public class LombokBug {
@Test
public void test() {
//foo();
Inner.foo();
}
@AllArgsConstructor
static class Inner {
static void foo() {}
}
}
The text was updated successfully, but these errors were encountered:
my system (latest stable builds):
to reproduce, I use the following code:
what I get:
what I expect:
test
passesThe text was updated successfully, but these errors were encountered: