This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: empty declaration deprecated
- To: andrew at pimlott dot ne dot mediaone dot net (Andrew Pimlott)
- Subject: Re: empty declaration deprecated
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 10 Jul 2001 08:59:36 -0700 (PDT)
- Cc: java at gcc dot gnu dot org
- References: <20010710091837.A13850@pimlott.ne.mediaone.net>
- Reply-To: apbianco at cygnus dot com
Andrew Pimlott writes:
> From what I can find (mainly, the bug report gcj/295), this warning
> is supposed to be about semicolons after inner classes. The JLS
> second edition says nothing bad about empty statements, so I hope
> this is a mistake.
>
> The code I actually care about is something like
>
> for (i=0; i<arr.length && arr[i] == null; i++) ;
As your example showed, the patch could use a little more discernment.
Can you file a PR?
Thank you.
./A