gcj/238: Can't call methods from Object on an inner class
bryce@albatross.co.nz
bryce@albatross.co.nz
Tue May 23 00:50:00 GMT 2000
>Number: 238
>Category: gcj
>Synopsis: Can't call methods from Object on an inner class
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 23 00:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: gcj 20000520 w/ PR 177 fix applied
>Organization:
>Environment:
foonix
>Description:
gcj gets an error trying to call methods inherited from
java.lang.Object on an inner class:
$ gcj -c PR238.java
PR238.java: In class `PR238':
PR238.java: In method `foo(PR238$A)':
PR238.java:5: Can't find method `toString()' in type `PR238$A'. Candidates are:
`toString()' in `java.lang.Object'
`toString()' in `java.lang.Object'.
a.toString();
^
1 error
>How-To-Repeat:
Try to compile this test case:
public class PR238
{
void foo(A a)
{
a.toString();
}
class A {}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list