This is the mail archive of the gcc-prs@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]

java/4141: GCJ compiles illegal code without complaining.



>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:


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