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

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


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-bugs mailing list