Created attachment 441860 [details] Full Build log [javac] /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999/src/org/openstreetmap/josm/Main.java:604: error: lambda expressions are not supported in -source 1.7 [javac] mainPanel.addMapFrameListener((o, n) -> redoUndoListener.commandChanged(0, 0)); [javac] ^ [javac] (use -source 8 or higher to enable lambda expressions) [javac] /var/tmp/portage/sci-geosciences/josm-99999/work/josm-99999/src/org/openstreetmap/josm/Main.java:700: error: method references are not supported in -source 1.7 [javac] FeatureAdapter.registerBrowserAdapter(OpenBrowser::displayUrl); [javac] ^ [javac] (use -source 8 or higher to enable method references) GENTOO_VM=oracle-jdk-bin-1.8 CLASSPATH="" JAVA_HOME="/opt/oracle-jdk-bin-1.8.0.92" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="javac"
Same here with GENTOO_VM=icedtea-bin-8 CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-3.1.0" JAVACFLAGS="-source 1.7 -target 1.7" COMPILER="javac" Not sure what eclass magick is happening behind the scenes, but the following fix works for me: -DEPEND=">=virtual/jdk-1.7" -RDEPEND=">=virtual/jre-1.7" +DEPEND=">=virtual/jdk-1.8" +RDEPEND=">=virtual/jre-1.8"
Works for me, too.
Created a pull request: https://github.com/gentoo/gentoo/pull/2099
author Lorand Jakab <lojakab@cisco.com> 2016-08-17 22:16:08 (GMT) committer Amy Winston <amynka@gentoo.org> 2016-08-18 07:31:20 (GMT) commit 9bce79b4939d567d90661949373952fe16017530 sci-geosciences/josm: Require Java 8 for 99999 Thanks