This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/25001] dos equis
- From: "vadimn at redhat dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 23 Nov 2005 14:12:31 -0000
- Subject: [Bug java/25001] dos equis
- References: <bug-25001-8557@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from vadimn at redhat dot com 2005-11-23 14:12 -------
> Since i is declared final in the above example, it is a constant
> expression of type int. Therefore, the above clause applies in this
> case.
See also
http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#5313
| 15.28 Constant Expression
|
| A compile-time constant expression is an expression denoting a
| value of primitive type or a String that is composed using only
| the following:
|
| [...]
|
| * Simple names that refer to final variables whose initializers
| are constant expressions
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25001