Community
Participate
Working Groups
This is Cheetah5 + Eclipse 3.0M9. Compiler complience level: 1.5 Source compatibility: 1.5 Class compatibility: 1.5 Unsafe type operation: Warning Generic type parameter with final bound: Warning Here is test case the demonstrates the problem. ----------------------------------------- public class TestAdapterFactory implements org.eclipse.core.runtime.IAdapterFactory{ public Object getAdapter(Object adaptable, Class type) { return null; } public Class[] getAdapterList() { return null; } } ------------------------------------------ The compiler incorrectly reports The return type is incompatible with IAdapterFactory.getAdapterList(). Note that to trigger the error, the overridden method must be defined in a different jar file.
Reproduced with Cheetah06. Method verifier incorrectly signals an error, where super method is: public Class[] getAdapterList();
Fixed simple case. See GenericTypeTest 149 for further work on additional cases.