check for abstract method implemented optimized: don't go through hierarchy if superClass is not abstract and there is no interfaces, would also fix asm implementations with 'broken' erasures inside

This commit is contained in:
Anna.Kozlova
2016-04-11 21:51:18 +02:00
parent 1466b0155e
commit fc14dddfd8
3 changed files with 22 additions and 0 deletions
@@ -0,0 +1,14 @@
interface I {
void m();
}
<error descr="Class 'A' must either be declared abstract or implement abstract method 'm()' in 'I'">class A implements I</error> {}
class B extends A {}
class U {
{
new B() {};
B b = new B();
}
}