Details
Description
Although the following program is invalid, it probably shouldn't produce an IncompatibleClassChangeError at runtime:
class Foo {
static main(args) {
super.bar()
}
}
Although the following program is invalid, it probably shouldn't produce an IncompatibleClassChangeError at runtime:
class Foo {
static main(args) {
super.bar()
}
}
After we get rid of the runtime error IncompatibleClassChangeError , what should be the behavior of this program - should it be a compilation error as it is in Java? I guess not, because this.bar() is allowed in static context. Should it become a static call on the super class?