Community
Participate
Working Groups
Build ID: I20090202-1535 Steps To Reproduce: 1. Create a generic interface with a method returning a type variable 2. Create a generic interface that extends the above interface and specializes the generic type and overrides the method 3. Implement the specific interface and use the method 4. compile your code With Eclipse 3.5M4/M5 you will get "The method ... is ambiguous for the type ..." With Eclipse 3.4 or Sun javac compilation succeeds More information: See Line 72 (this.mutableChildList = listFactory.create();) of this file as example: http://m-m-m.svn.sourceforge.net/svnroot/m-m-m/trunk/mmm-util/mmm-util-core/src/main/java/net/sf/mmm/util/collection/base/AbstractTreeNode.java
Please provide a complete reproduceable testcase. I tried to duplicate given the instructions but it worked fine. thanks
Waiting for a complete testcase
Created attachment 134184 [details] Code to prove the bug Maybe my textual description was too imprecise. However the linked code proves the bug. Anyways here you have an isolated showcase with just 3 java-files. The method createGeneric() can also be removed - just to give the code some sense...
Thanks for the testcase I reproduced the ambiguous error with 3.5M4 but no error is produced with 3.5M7. Removed the patch for bug 268837 & the error appeared in M7 *** This bug has been marked as a duplicate of bug 268837 ***
jup. I retested this with M7 and after cleaning and rebuilding my project, everything compiles properly. Thanks! BTW - therefore I now get warnings for using raw types e.g. in case of "... instanceof Class" and I should do "... instanceof Class<?>" - this is nuts. Besindes now javadoc-links on packages are considered as invalid.