------- 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