Bug 90619

Summary: [1.5][compiler] Cannot implement generified interface with erased method
Product: [Eclipse Project] JDT Reporter: Bas de Bakker <bdbakker>
Component: CoreAssignee: Kent Johnson <kent_johnson>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Bas de Bakker CLA 2005-04-07 10:48:56 EDT
This test file shown below fails to compile in Eclipse 3.1M6, while according to
my understanding of the JLS, it should be ok.  The error shown is

The type TestInterface.TestClass must implement the inherited abstract method
TestInterface.method(Iterator<Object>[])


import java.util.Iterator;

public interface TestInterface {

  public void method(Iterator<Object>[] iter);
  
  public static class TestClass implements TestInterface {
    
    public void method(Iterator[] iter) {}
  }
}
Comment 1 Bas de Bakker CLA 2005-05-23 04:43:04 EDT
This bug is still present in 3.1M7.
Comment 2 Olivier Thomann CLA 2005-06-07 11:03:21 EDT
Still in HEAD.
javac compiles fine.
Comment 3 Kent Johnson CLA 2005-06-07 16:10:03 EDT
Added MethodVerify test060
Comment 4 Frederic Fusier CLA 2005-06-08 03:09:23 EDT
Verified for 3.1 RC2 using build N20050608-0010
Comment 5 Maxime Daniel CLA 2005-06-10 06:41:17 EDT
Verified for 3.1 RC2 using build I20050610-0010
Comment 6 Frederic Fusier CLA 2005-06-10 10:23:49 EDT
close