Community
Participate
Working Groups
In ValueConverter: https://github.com/m-m-m/util/blob/master/core/src/main/java/net/sf/mmm/util/value/api/ValueConverter.java#L22 I had to remove this method: /** * {@inheritDoc} * * @see #convert(Object, Object, GenericType) */ @Override <T extends TARGET> T convert(SOURCE value, Object valueSource, Class<T> targetClass) throws ValueException; In order to make this line compile in Eclipse: https://github.com/m-m-m/util/blob/master/core/src/main/java/net/sf/mmm/util/lang/base/StringUtilImpl.java#L483 It worked with Oracle Compiler using maven but failed in Eclipse. As a workaround I removed the overridden method that only adds a JavaDoc hint. However, this is IMHO a bug in Eclipse (with Neon Build id: 20160613-1800 when 1.8 is active). https://github.com/m-m-m/util/commit/4f6594388c09c54488a22e7e22726ee96170785a In case you really care: I discovered a lot of problems and differences in Oracle and Eclipse compliler here: https://github.com/m-m-m/util/issues/166 Oracle does not care and just ignores my bug reports even though I created isolated tests that prove the bug. Hopefully Eclipse community cares better...
Minimal example: //--- import java.lang.reflect.Type; interface SimpleValueConverter<SOURCE, TARGET> { <T extends TARGET> T convert(SOURCE value, Class<T> targetClass); } interface ValueConverter<SOURCE, TARGET> extends SimpleValueConverter<SOURCE, TARGET> { @Override <T extends TARGET> T convert(SOURCE value, Class<T> targetClass); } interface GenericType<T> extends Type { } public class StringUtilImpl { public <E> E fromSeparatedString(ValueConverter<? super String, ? super E> converter, Class<E> type) { return converter.convert("", type); } } //--- Reports:---------- 1. ERROR in /tmp/bug/repro/src/StringUtilImpl.java (at line 16) return converter.convert("", type); ^^^^^^^ The method convert(capture#1-of ? super String, Class<E>) is ambiguous for the type ValueConverter<capture#1-of ? super String,capture#2-of ? super E> ---------- 1 problem (1 error) Only happens at -1.8. What's particularly strange: a method conflicts with its own override.
bulk move out of 4.8
Bulk move out of 4.9
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.