System.out.println("foo" + s != null ? s : ""); precedence

Alexandre Petit-Bianco
Tue Aug 14 16:05:00 GMT 2001

Alexandre Petit-Bianco writes:

> It's wrong with 3.0 too. 

And guess what. It's wrong with Sun's JDK1.1.2 and JDK1.1.8. An old
version of jikes I found also behaves the same way. I guess the bug is
in Sun's grammar specification. I wonder if it's stil there with in
Sun's 1.3...


More information about the Java mailing list