This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/25001] dos equis



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]