java/4141: GCJ compiles illegal code without complaining.
bachir.ghoubali@avisto.com
bachir.ghoubali@avisto.com
Mon Aug 27 10:16:00 GMT 2001
>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:
More information about the Java-prs
mailing list