This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/310: illegal type "long" accepted for "switch" expression
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/310: illegal type "long" accepted for "switch" expression
- From: bryce at albatross dot co dot nz
- Date: 9 Aug 2000 10:59:18 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 310
>Category: gcj
>Synopsis: illegal type "long" accepted for "switch" expression
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 04:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
"int", "short", "char" and "byte" are the only legal types
for a switch statement expression. But gcj also accepts "long".
The following code is illegal.
class LongSwitch
{
void m(long l)
{
switch (l) {}
}
}
>How-To-Repeat:
Just try to build libgcj.zip with something that isn't
"gcj -C" ;-)
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: