This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: System.out.println("foo" + s != null ? s : ""); precedence
- To: Mark J Roberts <mjr at anarcast dot net>
- Subject: Re: System.out.println("foo" + s != null ? s : ""); precedence
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 14 Aug 2001 12:26:24 -0700 (PDT)
- Cc: java at gcc dot gnu dot org
- References: <20010813142135.B30620@foobar>
- Reply-To: apbianco at cygnus dot com
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