gwt-test-utils with Lombok

103 views Asked by At

How can one convince gwt-test-utils to utilize Lombok, so that my @Getter methods do exist when running a GwtSpringTest?

22:55:09,153 ERROR GwtTreeLogger:60 - Line 67:
The method getLoginService() is undefined for the type LoginBox

LoginBox:

@Getter(lazy=true)
private final LoginSvcAsync loginService = loginService();
1

There are 1 answers

2
Roel Spilker On BEST ANSWER

I hope that the GWT Setup instructions can help you here:

Edit your proj-debug and proj-compile batch scripts to add the following VM arguments:

java -javaagent:lombok.jar=ECJ (rest of arguments)

Disclosure: I am a Lombok developer.