From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10242 invoked by alias); 23 Nov 2005 14:12:31 -0000 Received: (qmail 10224 invoked by uid 48); 23 Nov 2005 14:12:31 -0000 Date: Wed, 23 Nov 2005 14:12:00 -0000 Message-ID: <20051123141231.10223.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug java/25001] dos equis In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: java-prs@gcc.gnu.org From: "vadimn at redhat dot com" Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2005-q4/txt/msg00389.txt.bz2 List-Id: ------- 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