I have some unexplained behavior with java.util.logging. Let\'s take a look at these two samples:
First:
boolean var = false;
log.log( Lev
{ and } are also potentially problems. This is why the NetBeans IDE hint to use message formats in log messages escapes these characters.
Besides
log.log(Level.WARNING, "Can''t {0}", new Object[] {var});
you can try simply and more readably
log.log(Level.WARNING, "Can’t {0}", new Object[] {var});
or just spell it out to begin with:
log.log(Level.WARNING, "Cannot {0}", new Object[] {var});