This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: java/5943: incorrect "Can't reassign a value to the final variable" error
- From: Eric B Blake <ebb9 at email dot byu dot edu>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, java-prs at gcc dot gnu dot org, shroff at transeda dot com
- Date: Wed, 13 Mar 2002 13:16:59 -0700
- Subject: Re: java/5943: incorrect "Can't reassign a value to the final variable" error
- Organization: BYU Configurable Computing Lab
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5943
A quick workaround: Use this code simplification.
//file: bug1.java
public abstract class bug1 {
public static final String m_os_name = System.getProperty("os.name");
public static final boolean m_unix_os = ! "Windows
NT".equals(m_os_name);
}
----
Eric Blake