From mboxrd@z Thu Jan 1 00:00:00 1970 From: bachir.ghoubali@avisto.com To: gcc-gnats@gcc.gnu.org Subject: java/4141: GCJ compiles illegal code without complaining. Date: Mon, 27 Aug 2001 10:16:00 -0000 Message-id: <20010827170735.32491.qmail@sourceware.cygnus.com> X-SW-Source: 2001-08/msg00679.html List-Id: >Number: 4141 >Category: java >Synopsis: GCJ compiles illegal code without complaining. >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Mon Aug 27 10:16:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Bachir GHOUBALI >Release: 3.0.1 >Organization: >Environment: Solaris 7, gcj 3.0.1 >Description: gcj compiles illegal code. Following class should not compile because 'c' is a literal ( not an object ). public class Str { public static void main(String[] args) { 'c'.equals( 'c' ); // This is illegal. } } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: