Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369800

Summary: Implementing interface with generics
Product: [Modeling] TMF Reporter: Dennis Huebner <dennis.huebner>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.3.0Flags: sebastian.zarnekow: juno+
Target Milestone: M6   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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