Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 589970 - scii-geosciences/josm-99999 (rev. 10672) failed to build, requires java 1.8 not 1.7
Summary: scii-geosciences/josm-99999 (rev. 10672) failed to build, requires java 1.8 n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-29 09:45 UTC by Jean-Claude Repetto
Modified: 2016-08-18 07:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Full Build log (build.log,46.65 KB, text/x-log)
2016-07-29 09:45 UTC, Jean-Claude Repetto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Claude Repetto 2016-07-29 09:45:31 UTC
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"
Comment 1 Vincent de Phily 2016-08-08 14:27:24 UTC
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"
Comment 2 Jean-Claude Repetto 2016-08-08 15:37:30 UTC
Works for me, too.
Comment 3 Lori 2016-08-17 22:20:36 UTC
Created a pull request: https://github.com/gentoo/gentoo/pull/2099
Comment 4 Amy Liffey gentoo-dev 2016-08-18 07:33:45 UTC
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