This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]