Skip to content

java 8 problems #129

@puntogil

Description

@puntogil

Enviroment:
openjdk version "1.8.0"
OpenJDK Runtime Environment (build 1.8.0-b132)
OpenJDK Server VM (build 25.0-b70, mixed mode)

Apache Maven 3.2.1
Maven home: /usr/share/maven
Java version: 1.8.0-b132, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.0/jre
Default locale: it_IT, platform encoding: UTF-8
OS name: "linux", version: "3.13.7-100.fc19.i686", arch: "i386", family: "unix"

compile.core:
[copy] Copying 13 files to /builddir/build/BUILD/jdom-JDOM-2.0.5/build/core
[copy] Copied 16 empty directories to 2 empty directories under /builddir/build/BUILD/jdom-JDOM-2.0.5/build/core
[javac] Compiling 133 source files to /builddir/build/BUILD/jdom-JDOM-2.0.5/build/core
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] /builddir/build/BUILD/jdom-JDOM-2.0.5/core/src/java/org/jdom2/ContentList.java:631: error: sort(Comparator<? super Content>) in ContentList cannot implement sort(Comparator<? super E>) in List
[javac] final void sort(final Comparator<? super Content> comp) {
[javac] ^
[javac] attempting to assign weaker access privileges; was public
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[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
[javac] /builddir/build/BUILD/jdom-JDOM-2.0.5/core/src/java/org/jdom2/AttributeList.java:609: error: sort(Comparator<? super Attribute>) in AttributeList cannot implement sort(Comparator<? super E>) in List
[javac] void sort(Comparator<? super Attribute> comp) {
[javac] ^
[javac] attempting to assign weaker access privileges; was public
[javac] where E is a type-variable:
[javac] E extends Object declared in interface List
[javac] 3 errors
[javac] 4 warnings

any ideas?
thanks in advance
regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions