Bug 415600 - Unexpected compile error
Summary: Unexpected compile error
Status: VERIFIED DUPLICATE of bug 410325
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 4.3.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-21 11:18 EDT by Eric Duell CLA
Modified: 2013-08-29 06:05 EDT (History)
4 users (show)

See Also:


Attachments
Demo project to reproduce the error (7.05 KB, application/zip)
2013-08-21 11:18 EDT, Eric Duell CLA
no flags Details
Screenshot of the error (13.93 KB, image/png)
2013-08-21 11:20 EDT, Eric Duell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Duell CLA 2013-08-21 11:18:32 EDT
Created attachment 234615 [details]
Demo project to reproduce the error

I attached a simple dummy project. Please have a look at it and feel free to give this issue a better title.

In Juno the imported project has no errors, in Kepler it marks de.demo.MyElementHandler as error. Kepler wants me to implement the create(IElement) method again, that already was implemented in the abstract class.

Thanks in advance
Comment 1 Eric Duell CLA 2013-08-21 11:20:33 EDT
Created attachment 234616 [details]
Screenshot of the error
Comment 2 Dani Megert CLA 2013-08-22 06:18:37 EDT
Can reproduce with this reduced example:


import java.io.Reader;
import java.io.StringReader;

public abstract class A<E extends Reader> {
	protected abstract void create(E element);
}

abstract class B<T extends Reader> extends A<T> {

	public void create(Reader element) {

	}
}

class C extends B<StringReader> {

}
Comment 3 Dani Megert CLA 2013-08-22 06:19:38 EDT
javac does not complain.

We should fix this for 4.3.1.
Comment 4 Dani Megert CLA 2013-08-22 06:24:15 EDT
Might be caused by fix for bug 406928.
Comment 5 Jay Arthanareeswaran CLA 2013-08-22 06:25:52 EDT
Looks like same as bug 410325 ?
Comment 6 Jay Arthanareeswaran CLA 2013-08-22 06:28:54 EDT
(In reply to comment #5)
> Looks like same as bug 410325 ?

Indeed. And just as mentioned in bug 410325, comment #0, removing the abstract keyword makes the error disappear in this example too.

*** This bug has been marked as a duplicate of bug 410325 ***
Comment 7 Jay Arthanareeswaran CLA 2013-08-29 06:04:01 EDT
Verified for 4.3.1 with build M20130828-0800