@ToString and onlyExplicitlyIncluded attribute

705 views
Skip to first unread message

A_M

unread,
May 30, 2018, 9:17:58 AM5/30/18
to Project Lombok
Hi,

I'm trying to do the following:

@Data
@ToString(onlyExplicitlyIncluded = true)
@Builder
public class MyClass {
@ToString.Include
private final String member;
...

However, when I try to compile, I get the following error:

> Task :app:compileJava FAILED
MyClass.java:8: error: Can't translate a class java.lang.Boolean to the expected class java.lang.Boolean
@ToString(onlyExplicitlyIncluded = true)
                                   ^
1 error

I'm at a loss as to why this is happening. Does anyone have any ideas please?

Thanks.

Roel Spilker

unread,
Jun 4, 2018, 7:57:59 PM6/4/18
to Project Lombok
This should be fixed in the just released 1.18.0
Reply all
Reply to author
Forward
0 new messages