Java finality

Mark Wielaard mark@klomp.org
Sat Feb 12 00:37:00 GMT 2005


Hi,
On Thu, 2005年02月10日 at 19:13 -0700, Tom Tromey wrote:
> "final" was always weird, really. I've seen some texts out there say
> that blank finals could only be set in <init> or <clinit>... but this
> contradicts what many compilers actually do. And afaik no runtime
> ever checked that a blank final was only assigned once.

Apparently the MSJVM did.
http://gcc.gnu.org/ml/java/2000-10/msg00128.html
(Which also contains some quotes on various specs and interpretations.)
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java/attachments/20050212/40c9b66c/attachment.sig>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /