Bug 90619 - [1.5][compiler] Cannot implement generified interface with erased method
Summary: [1.5][compiler] Cannot implement generified interface with erased method
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: Kent Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-07 10:48 EDT by Bas de Bakker CLA
Modified: 2005-06-10 10:23 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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