| Summary: | [1.5][compiler] Cannot implement generified interface with erased method | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Bas de Bakker <bdbakker> |
| Component: | Core | Assignee: | 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: | |||
This bug is still present in 3.1M7. Still in HEAD. javac compiles fine. Added MethodVerify test060 Verified for 3.1 RC2 using build N20050608-0010 Verified for 3.1 RC2 using build I20050610-0010 close |
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) {} } }