[fedora-java] Java 8 testing in Fedora

Ricardo Argüello ricardo at fedoraproject.org
Thu Apr 3 18:24:56 UTC 2014


Java 8 is stricter regarding Generics and casting. I had one issue with
"avro" in rawhide:
https://bugzilla.redhat.com/show_bug.cgi?id=1082417

-- 
Ricardo Arguello


On Wed, Apr 2, 2014 at 6:20 AM, Mikolaj Izdebski <mizdebsk at redhat.com>wrote:

> I have done a rebuild [1] of Java packages using Java 8.  About 20 % of
> packages currently fail, but mostly for reasons not related directly to
> Java 8.
>
> Some of problems I have found:
>
> 1) Some collection iterators return elements in different order - most
> common problem, which breaks tests in many packages and who knows what
> else.
>
> Solution: work with upstream to fix buggy code that relies on order of
> elements in unordered collections.
>
> 2) Assertion failure jn javadoc - rhbz#1082186
>
> 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
>
> 4) java.lang.reflect.Proxy - fields of proxy classes cannot be accessed
> using reflection any longer?
>
>
> [1] The rebuild was done for testing purposes only.  Resulting Builds
> are not included in Fedora.
>
> --
> Mikolaj Izdebski
> Software Engineer, Red Hat
> IRC: mizdebsk
> --
> java-devel mailing list
> java-devel at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/java-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/java-devel/attachments/20140403/54701ad5/attachment.html>


More information about the java-devel mailing list