java/5943: incorrect "Can't reassign a value to the final variable" error

Eric B Blake ebb9@email.byu.edu
Wed Mar 13 12:26:00 GMT 2002


The following reply was made to PR java/5943; it has been noted by GNATS.

From: Eric B Blake <ebb9@email.byu.edu>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
   nobody@gcc.gnu.org, java-prs@gcc.gnu.org, shroff@transeda.com
Cc:  
Subject: Re: java/5943: incorrect "Can't reassign a value to the final variable" 
 error
Date: Wed, 13 Mar 2002 13:16:59 -0700

 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



More information about the Gcc-prs mailing list