Re: Java 8 testing in Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Mikolaj Izdebski <mizdebsk@xxxxxxxxxx> [2014-04-04 07:30]:
> On 04/04/2014 01:23 PM, 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>>
> 
> Or another example:
> 
>     [javac]
> /builddir/build/BUILD/jdom-JDOM-2.0.5/core/src/java/org/jdom2/ContentList.java:1241:
> error: sort(Comparator<? super F>) in ContentList.FilterList cannot
> implement sort(Comparator<? super E>) in List
>     [javac] 		final void sort(final Comparator<? super F> comp) {
>     [javac] 		           ^
>     [javac]   attempting to assign weaker access privileges; was public
>     [javac]   where F,E are type-variables:
>     [javac]     F extends Content declared in class ContentList.FilterList
>     [javac]     E extends Object declared in interface List
> 
> Package: jdom2
> 

Ah, that is unfortunate. Both this and ini4j will require upstream fixes
for this one :/

Deepak

> -- 
> Mikolaj Izdebski
> Software Engineer, Red Hat
> IRC: mizdebsk
> --
> java-devel mailing list
> java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/java-devel
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel





[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux