[fedora-java] Java 8 testing in Fedora

Orion Poplawski orion at cora.nwra.com
Mon Apr 7 18:17:24 UTC 2014


On 04/04/2014 05:23 AM, Mikolaj Izdebski wrote:
> On 04/02/2014 08:16 PM, Deepak Bhole wrote:
>>> 3) Some new methods were added, which breaks existing code.  Examples:
>>>   java.util.Map - remove(K,V)
>>>   java.util.List - sort(Comparator)
>>>   java.lang.reflect.TypeVariable - getAnnotatedBounds()
>>>   sun.security.jgss.spi.GSSCredentialSpi - impersonate(GSSNameSpi)
>>>
>>> Solution: patch code to implement new methods
>>>
>>
>> The java.util* ones use the new default mechanism and should pose no
>> problem afaik. Can you post a snippet of the error message?
>>
>> The last 2 will require code changes to accommodate those methods.
>> Thankfully there should be far fewer cases of those than the first 2.
> 
> Duplicate methods named spliterator with the parameters () and () are
> inherited from the types Collection<LazyExtensionManager.Descriptor<E>>
> and Iterable<LazyExtensionManager.Descriptor<E>>
> 
> Package: eclipse-dltk
> 

Seeing similar with eclipse-photran:

[ERROR] Failed to execute goal
org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile)
on project org.eclipse.photran.core.vpg: Compilation failure:
Compilation failure:
[ERROR]
/builddir/build/BUILD/org.eclipse.photran-5313e0561fbb3d888ecf1817c6101a36e0b89a07/org.eclipse.photran.core.vpg/parser/org/eclipse/photran/internal/core/parser/IASTListNode.java:[17]
[ERROR] public interface IASTListNode<T> extends List<T>, IASTNode
[ERROR] ^^^^^^^^^^^^
[ERROR] Duplicate methods named spliterator with the parameters () and
() are inherited from the types List<T> and Collection<T>


Is there a generic fix for this type of error?


-- 
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion at cora.nwra.com
Boulder, CO 80301              http://www.cora.nwra.com


More information about the java-devel mailing list