Community
Participate
Working Groups
public class Dummy { public final boolean BOOL = false; public void foo() { StringJoiner sj= new StringJoiner(BOOL ? "b" : "s", null, null); } } BOOL is marked as "BOOL cannot be resolved to a variable". Suggested QuickFix is "Change to BOOL". If "b" or "s" is changed to null the error is gone. Only happens if BOOL is final and the constructor has more than 1 parameter.
*** This bug has been marked as a duplicate of bug 569498 ***