Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369800 - Implementing interface with generics
Summary: Implementing interface with generics
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 08:54 EST by Dennis Huebner CLA
Modified: 2017-09-19 18:07 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Huebner CLA 2012-01-26 08:54:51 EST
Xtext
Version: 2.3.0.v201201181458
Build id: N201201181458

Implementing an generic Interface e.g. org.eclipse.emf.common.util.TreeIterator<E>
with a concrete Type e.g. File produce an error marker, see example below.

class FileTreeIterator implements TreeIterator<File> {

File next;

...

override next() {
		next
	}
...

}


Error marker: Incompatible implicit return type. Expected E but was java.io.File
Comment 1 Sebastian Zarnekow CLA 2012-01-26 09:07:37 EST
Possibly related to

class StringList extends ArrayList<String> { }

where we see an error marker for missing implementation of #toArray.

See OverrideValidationTest.testClassMustBeAbstract_05() and ~06()
Comment 2 Sebastian Zarnekow CLA 2012-04-03 18:17:52 EDT
Fixed for M6.
Comment 3 Karsten Thoms CLA 2017-09-19 17:56:58 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 4 Karsten Thoms CLA 2017-09-19 18:07:45 EDT
Closing all bugs that were set to RESOLVED before Neon.0