Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 421796 - [1.8][compiler] java.lang.AbstractMethodError executing default method code.
Summary: [1.8][compiler] java.lang.AbstractMethodError executing default method code.
Status: RESOLVED DUPLICATE of bug 404690
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380501
  Show dependency tree
 
Reported: 2013-11-15 01:32 EST by Srikanth Sankaran CLA
Modified: 2013-11-19 09:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Srikanth Sankaran CLA 2013-11-15 01:32:43 EST
BETA_JAVA8: 

// --
interface I  {
    void foo(); 
}

interface J extends I {
    default void foo() {
    }
}

interface K extends J {
}

public class X implements K {
	public static void main(String argv[]) {
		X test = new X();
		((J)test).foo();
		test.foo();
	}
}

This program results in an AbstractMethodError  upon execution. I don't
see javac emitting any bridges for this program while we do.

I tested with 8b115.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=391376#c5 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=404690 may have a role to
play here.
Comment 1 Srikanth Sankaran CLA 2013-11-15 01:33:10 EST
Thanks for taking a look, Stephan.
Comment 2 Stephan Herrmann CLA 2013-11-19 09:46:54 EST
(In reply to Srikanth Sankaran from comment #0)
> This program results in an AbstractMethodError  upon execution. I don't
> see javac emitting any bridges for this program while we do.
> 
> I tested with 8b115.
> 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=391376#c5 and
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=404690 may have a role to
> play here.

Excellent guess, after resolving bug 404690 the test from comment 0 passes already.

Regression test has been added via http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA8&id=4d5ca8a02167bbefc92469b1dbb1f1e04260a45e

*** This bug has been marked as a duplicate of bug 404690 ***