This is the mail archive of the
java-prs@sourceware.cygnus.com
mailing list for the Java project.
gcj/106: Source parser: method call on cast to interface type produces internal error
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/106: Source parser: method call on cast to interface type produces internal error
- From: bryce at albatross dot co dot nz
- Date: 22 Nov 1999 03:32:37 -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: 106
>Category: gcj
>Synopsis: Source parser: method call on cast to interface type produces internal error
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 21 19:40:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay <bryce@albatross.co.nz>
>Release: gcc 2.96 19991109
>Organization:
>Environment:
any
>Description:
Compiling the following test code results in the error
"Test.java:8: internal error in check-init: tree code not implemented: pointer_type"
also, replacing the interface method with a "void" method gives the
similar error
"Test.java:7: internal error in check-init: tree code not implemented: void_type"
>How-To-Repeat:
public interface A
{
String getStr();
}
public class B implements A
{
public String getStr()
{
return "foo";
}
}
public class Test
{
public static void main(String args[])
{
Object obj = new B();
String s;
if (obj instanceof A)
s = ((A) obj).getStr();
}
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: