> -----Original Message-----
> From: Stephane Bailliez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 6 February 2002 7:09 PM
> To: Ant Developers List
> Subject: Re: [AUDIT] jakarta-ant/proposal/myrmidon
>
>
> ----- Original Message -----
> From: "Adam Murdoch" <[EMAIL PROTECTED]>
>
> > Can we switch off the "Modifiers of declaration are present in a
> > non-standard order" check?  As far as I can tell, according to the
> sections
> > of the JLS that they cite, it's the audit tool that's got the
> modifiers in
> > the wrong order, not our code.
>
> Switching it off is probably not a good idea but fixing it could be :)
>
> > The appropriate sections (8.1.1, 8.3.1 and 8.4.3) of the JLS are at:
> >
> > http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html
>
> There is something wrong somewhere. Maybe a modification from the
> first JLS
> version ?

Yep - this is exactly what happened.  In the JLS first edition, the order
for field modifiers is "final static", and in the second edition the order
is "static final".  For methods the order is "static final" in both
editions.

Would it be easy to change the check to allow "static final" for fields?
It's not important, but it would be kinda good if it didn't complain about
code that's compliant with the JLS.


Adam


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to