Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 421747 - [1.8][compiler] Bridge methods could be emitted into interfaces rather than implementations ?
Summary: [1.8][compiler] Bridge methods could be emitted into interfaces rather than i...
Status: VERIFIED DUPLICATE of bug 436350
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 4.5 M2   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380501
  Show dependency tree
 
Reported: 2013-11-14 10:15 EST by Stephan Herrmann CLA
Modified: 2014-09-17 02:48 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2013-11-14 10:15:20 EST
From bug 421543 commit 10:

> > I also released an additional disabled test
> > org.eclipse.jdt.core.tests.compiler.regression.InterfaceMethodsTest.
> > _testBug421543b()
> > that shows two problems. Bridge method is getting emitted in X it could be 
> > emitted in J for efficiency reasons.
> 
> I'll check this later, need to align with Spec Part J which has
> JVMS 4.9.2
>  "Each invokespecial instruction must name ..., or a method in a direct
>   superinterface of the current class or interface."
Comment 1 Stephan Herrmann CLA 2013-11-19 09:58:44 EST
(In reply to Stephan Herrmann from comment #0)
> From bug 421543 commit 10:
> 
> > > I also released an additional disabled test
> > > org.eclipse.jdt.core.tests.compiler.regression.InterfaceMethodsTest.
> > > _testBug421543b()
> > > that shows two problems. Bridge method is getting emitted in X it could be 
> > > emitted in J for efficiency reasons.

Should note that the test has been fixed and enabled via bug 421543.
Only the potential performance issue remains.
Comment 2 Srikanth Sankaran CLA 2014-01-31 17:32:28 EST
(In reply to Stephan Herrmann from comment #1)

> Should note that the test has been fixed and enabled via bug 421543.
> Only the potential performance issue remains.

In that event, retargetting to 4.4, so cycles leading to GA could be
spent on more important tasks.
Comment 3 Srikanth Sankaran CLA 2014-08-26 01:30:08 EDT
Turns out this is not just an optimization, but is also a correctness issue.
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=436350, I'll take over this
one.

*** This bug has been marked as a duplicate of bug 436350 ***
Comment 4 Jay Arthanareeswaran CLA 2014-09-17 02:48:02 EDT
Verified for 4.5 M2 using build I20140915-2000