Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Mar 2001 09:01:48 -0500
From:      "Brian J. Sletten" <brian@parabon.com>
To:        "Thomas T. Veldhouse" <veldy@veldy.net>
Cc:        Todd Enersen <tee@fireclick.com>, freebsd-java@freebsd.org
Subject:   Re: possible bug in port of javac
Message-ID:  <3ABB574C.AD75BCA6@parabon.com>
References:  <3ABA5AC3.CA8F09DD@fireclick.com> <005d01c0b341$5cedac20$1d750140@cascade>

next in thread | previous in thread | raw e-mail | index | archive | help
> When you declare something final, aren't you supposed to supply an initializer? I believe
> this is analgous to const int m_maxValuesPerName = 10 in C++.
That is how it is usually used, but it needn't be initialized at that point.

You might also initialize it either in a static block (if it is a final static) or in the constructors. The key is that it can only be assigned to once.

-- 

Self-discovery is useless unless I discover I am somebody else.  -- Dan Goodman

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ABB574C.AD75BCA6>