[ 
https://issues.apache.org/jira/browse/DAEMON-379?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280292#comment-16280292
 ] 

Mark Thomas commented on DAEMON-379:
------------------------------------

As much as it pains me to say it, probably not. I didn't even look at build.xml 
when I was preparing the recent release.

> Unable to build with java-9 using ant.
> --------------------------------------
>
>                 Key: DAEMON-379
>                 URL: https://issues.apache.org/jira/browse/DAEMON-379
>             Project: Commons Daemon
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         Environment: slackware-64 14.2
> openjdk 9.0.0.15
> Apache Ant 1.10.1
>            Reporter: Sébastien Ballet
>            Priority: Minor
>
> Build of commons-dameon with java-9 using Ant fails with the following errors 
> :
> {noformat}
>     [javac] Compiling 10 source files to 
> /tmp/SeB/commons-daemon-1.1.0-src/target/classes
>     [javac] warning: [options] bootstrap class path not set in conjunction 
> with -source 1.5
>     [javac] error: Source option 1.5 is no longer supported. Use 1.6 or later.
>     [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.
> {noformat}
> The patch below fixes that issue :
> {noformat}
> --- build.xml.orig    2017-12-06 10:54:59.570231291 +0100
> +++ build.xml 2017-12-06 10:57:14.879237328 +0100
> @@ -93,10 +93,10 @@
>  
>  
>    <!-- compiler source JDK version -->
> -  <property name="compile.source"          value="1.5"/>
> +  <property name="compile.source"          value="1.6"/>
>  
>    <!-- compiler target JDK version -->
> -  <property name="compile.target"          value="1.5"/>
> +  <property name="compile.target"          value="1.6"/>
>  
>    <!-- Should Java compilations set the 'debug' compiler option? -->
>    <property name="compile.debug"           value="true"/>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to