This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

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


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


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