Modify

Opened 8 years ago

Closed 8 years ago

#12293 closed defect (fixed)

Plugin opendata cannot be built with Java 8

Reported by: simon04 Owned by: Don-vip
Priority: normal Milestone:
Component: Plugin opendata Version:
Keywords: java8 Cc:

Description

$ ant clean dist
Buildfile: /home/simon/src/josm.all.svngit/plugins/opendata/build.xml

clean:
   [delete] Deleting directory /home/simon/src/josm.all.svngit/plugins/opendata/build
   [delete] Deleting: /home/simon/src/josm.all.svngit/dist/opendata.jar

init:
    [mkdir] Created dir: /home/simon/src/josm.all.svngit/plugins/opendata/build

compile_poi:
     [echo] compiling Apache POI ... 
    [javac] Compiling 323 source files to /home/simon/src/josm.all.svngit/plugins/opendata/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] Note: /home/simon/src/josm.all.svngit/plugins/opendata/includes/org/apache/poi/ss/format/CellNumberFormatter.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning

compile_collections:
     [echo] compiling Apache Collections ... 
    [javac] Compiling 14 source files to /home/simon/src/josm.all.svngit/plugins/opendata/build
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /home/simon/src/josm.all.svngit/plugins/opendata/includes/org/apache/commons/collections/MultiHashMap.java:334: error: remove(Object,Object) in MultiHashMap cannot implement remove(Object,Object) in Map
    [javac]     public Object remove(Object key, Object item) {
    [javac]                   ^
    [javac]   return type Object is not compatible with boolean
    [javac] /home/simon/src/josm.all.svngit/plugins/opendata/includes/org/apache/commons/collections/MultiMap.java:69: error: remove(Object,Object) in MultiMap clashes with remove(Object,Object) in Map
    [javac]     public Object remove(Object key, Object item); // NO_UCD
    [javac]                   ^
    [javac]   return type Object is not compatible with boolean
    [javac] /home/simon/src/josm.all.svngit/plugins/opendata/includes/org/apache/commons/collections/map/MultiValueMap.java:156: error: remove(Object,Object) in MultiValueMap cannot implement remove(Object,Object) in Map
    [javac]     public Object remove(Object key, Object value) {
    [javac]                   ^
    [javac]   return type Object is not compatible with boolean
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 3 errors
    [javac] 1 warning

BUILD FAILED
/home/simon/src/josm.all.svngit/plugins/opendata/build.xml:44: Compile failed; see the compiler error output for details.

Total time: 2 seconds
$ java -version
openjdk version "1.8.0_66"
OpenJDK Runtime Environment (build 1.8.0_66-b17)
OpenJDK 64-Bit Server VM (build 25.66-b17, mixed mode)

$ ant -version
Apache Ant(TM) version 1.9.6 compiled on July 3 2015

Attachments (0)

Change History (2)

comment:1 by Don-vip, 8 years ago

Right, I completely forgot to update jenkins/job/JOSM-Plugins to a multi-configuration project.

comment:2 by Don-vip, 8 years ago

Resolution: fixed
Status: newclosed

Fixed in [o31942:31943]. Thanks for the heads-up. Now jenkins is also up-to-date.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.