Hi,

i'm looking into building latest trunk revision (10124 now) from source on
archlinux.

When compiling , i get this warning :

[javac] warning: [options] bootstrap class path not set in conjunction
with -source 1.5

A search indicated this was due to building for an older version then the
java version i am running.

On my system jdk7 is installed, so i tried to build against java 1.7 .

ant -Djava.target.version=1.7 gives this output :

Buildfile:
/home/panoramix/Documents/WIP/pkgbuilds/freecol-svn/src/freecol-build/build.xml

init:

compile:
    [javac] Compiling 629 source files to
/home/panoramix/Documents/WIP/pkgbuilds/freecol-svn/src/freecol-build/build
    [javac]
/home/panoramix/Documents/WIP/pkgbuilds/freecol-svn/src/freecol-build/src/net/sf/freecol/common/model/BuildQueue.java:72:
warning: [unchecked] Possible heap pollution from parameterized vararg
type T
    [javac]     public BuildQueue(Colony colony, CompletionAction action,
int priority, T... items) {
    [javac]                              ^
    [javac]   where T is a type-variable:
    [javac]     T extends BuildableType declared in class BuildQueue
    [javac] 1 warning

build:

svnproperties:

gitproperties:

manifest:

package:
      [jar] Building jar:
/home/panoramix/Documents/WIP/pkgbuilds/freecol-svn/src/freecol-build/FreeCol.jar

BUILD SUCCESSFUL
Total time: 11 seconds


Is it safe to ignore this warning , or is a change to the sourcecode
necessary for building against openjdk 1.7 ?

Lone_Wolf aka lonewolfsf


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Freecol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freecol-developers

Reply via email to