From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11144 invoked by alias); 13 Mar 2002 20:26:04 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 11115 invoked by uid 71); 13 Mar 2002 20:26:02 -0000 Date: Wed, 13 Mar 2002 12:26:00 -0000 Message-ID: <20020313202602.11114.qmail@sources.redhat.com> To: tromey@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Eric B Blake Subject: Re: java/5943: incorrect "Can't reassign a value to the final variable" error Reply-To: Eric B Blake X-SW-Source: 2002-03/txt/msg00444.txt.bz2 List-Id: The following reply was made to PR java/5943; it has been noted by GNATS. From: Eric B Blake 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