Consider the following code:
interface Foo {
void NonStatic();
}
final class ack implements Foo {
static void NonStatic() {
}
}
When I compile this I get:
static.java:6: Static methods can't be overridden. Method void NonStatic() is static in interface Foo.
static void NonStatic() {
^
1 error
This error message is a bit confusing because NonStatic in Foo is not static.
DREL 10/28/95
interface Foo {
void NonStatic();
}
final class ack implements Foo {
static void NonStatic() {
}
}
When I compile this I get:
static.java:6: Static methods can't be overridden. Method void NonStatic() is static in interface Foo.
static void NonStatic() {
^
1 error
This error message is a bit confusing because NonStatic in Foo is not static.
DREL 10/28/95