gcj/307: gcj allows boolean value to be returned for int method
bryce@albatross.co.nz
bryce@albatross.co.nz
Wed Aug 9 03:16:00 GMT 2000
>Number: 307
>Category: gcj
>Synopsis: gcj allows boolean value to be returned for int method
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 03:16:10 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
The following code is illegal in Java. gcj does not detect
the error.
class IntRet
{
int a()
{
return false;
}
}
>How-To-Repeat:
try it out.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list