This is the mail archive of the java-prs@sources.redhat.com mailing list for the Java project.


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

gcj/310: illegal type "long" accepted for "switch" expression



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

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