ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: javac, depend, and interface constants
Date Tue, 24 Jul 2001 05:37:18 GMT
On Mon, 23 Jul 2001, Larry V. Streepy, Jr. <streepy@healthlanguage.com> wrote:

> I'm not a JLS guru by any means, but I thought non-final references
> had to be left as real references.

True, but there is nothing like a non-final reference in an interface,
see
<http://java.sun.com/docs/books/jls/second_edition/html/interfaces.doc.html#78642>:

>> Every field declaration in the body of an interface is implicitly
>> public, static, and final. It is permitted to redundantly specify any
>> or all of these modifiers for such fields.

So, even if you don't put the "final" into your source, the reference
is final as far as Java is concerned.

Stefan

Mime
View raw message