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

Alexandre Petit-Bianco apbianco@cygnus.com
Tue Aug 14 12:26:00 GMT 2001


Mark J Roberts writes:

> With today's trunk, the ternary operator's precedence is wrong:

It's wrong with 3.0 too. 

> A core dump happens when this is done in a toString method:

Noted. I'm going to file a PR.

./A



More information about the Java mailing list