Path: csiph.com!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Emmanuel Bourg Newsgroups: linux.debian.maint.java Subject: Re: jb_build with "-source 8" ignored Date: Sat, 27 Feb 2016 00:20:03 +0100 Message-ID: References: X-Mailbox-Line: From debian-java-request@lists.debian.org Fri Feb 26 23:18:09 2016 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.026 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -7 X-Greylist: delayed 397 seconds by postgrey-1.35 at bendel; Fri, 26 Feb 2016 23:17:55 UTC User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/19228 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/56D0DB8D.7080201@apache.org Approved: robomod@news.nic.it Lines: 44 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 27 Feb 2016 00:11:09 +0100 X-Original-Message-ID: <56D0DB8D.7080201@apache.org> X-Original-References: Xref: csiph.com linux.debian.maint.java:8903 Hi Dylan, Le 26/02/2016 07:29, Dylan a écrit : > So I really need to set "-source 8" to build beagle but I don't know > why it was ignored. Could someone have any idea of where is my > mistake? Your syntax looks correct. I gave it a try with a trivial class using the Java 8 syntax: public class Foo { public Runnable r = () -> {}; } With javahelper/0.54 in unstable I got this: ebourg@icare:~$ jh_build --javacopts="-source 1.7" --no-javadoc foo.jar . find . -name *.java -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp :debian/_jh_build.foo -d debian/_jh_build.foo -source 1.7 warning: [options] bootstrap class path not set in conjunction with -source 1.7 ./Foo.java:3: error: lambda expressions are not supported in -source 1.7 public Runnable r = () -> {}; ^ (use -source 8 or higher to enable lambda expressions) 1 error 1 warning ebourg@icare:~$ jh_build --javacopts="-source 1.8" --no-javadoc foo.jar . find . -name *.java -and -type f -print0 | xargs -s 512000 -0 /usr/lib/jvm/default-java/bin/javac -g -cp :debian/_jh_build.foo -d debian/_jh_build.foo -source 1.8 /usr/lib/jvm/default-java/bin/jar cfm /home/ebourg/foo.jar ../_jh_manifest.foo Foo.class So I fail to see what goes wrong with beagle. Emmanuel Bourg