This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: interfaces and sub-class implementations
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Nic Ferrier <nferrier at tapsellferrier dot co dot uk>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 22 Apr 2002 12:57:18 +1200
- Subject: Re: interfaces and sub-class implementations
- References: <873cxoegfn.fsf@pooh-sticks-bridge.tapsellferrier.co.uk>
Nic Ferrier wrote:
>I found a few problems with source and native compilation where
>interface methods not being implemented by the implementing class.
>
>I'll report these later on (probably after the 3.1 release unless
>people are desperate for bugs to fix /8-) but here's the jist:
>
>
> public interface Thingy
> public void someOperation (int x);
> public int anOperation (String x);
>
> public abstract class DooDah
> implements Thingy
>
> public void someOperation (int x)
> { }
>
>
> public class ThingumyJig extends DooDah
> public int anOperation (String x)
> {
> return "ha!";
> }
>
>
>The above (or something analagous to the above) won't source compile.
>
I tried this and it worked for me with 3.2 20020411. I had to modify it
slightly to get it to compile. If you could post an actual test case
that fails with the bug report, that would be great. I know that GCJ has
a few issues with abstract methods and bytecode but I'm not aware of any
problems with pure source-to-native compilation.
regards
Bryce.