Community
Participate
Working Groups
Eclipse 3.1 report bound mismatch on Enum_.java in Retrotranslator(http://retrotranslator.sourceforge.net/), but it can be compiled by SUN JDK. Following is a simplified version to reproduce the bug. public abstract class BoundMismatch<C extends BoundMismatch<C>> { public static <T extends BoundMismatch<T>> T getDefault(Class<T> clz){ return null; } public Object getDefault(){ return getDefault(getClass()); } }
PR reported originally by liuyehui@gmail.com in wrong bug report.
Problem comes from improper type adjustement for #getClass. Instead of yielding Class<? extends X>, it provides: Class<? extends X<C>> (which then gets captured). It should convert to raw type X<C> into X.
Added GenericTypeTest#test884. Backported to 3.1 maintenance. Fixed both in 3.1.2 and 3.2 streams.
Verified for 3.1.2 in M20060109-0800.
It seems I missed this bug during 3.2 M5 verification process. It's now done: Verified for 3.2 M5 using build I20060217-1115...