Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532258 - dev-java/netbeans-platform-8.0.2 with dev-java/oracle-jdk-bin:1.8 - .../work/nbbuild/templates/projectized.xml:96: You are attempting to build NetBeans using JDK 8 (or higher). This is forbidden as it may lead to accidental usage of JDK 8+ APIs.
Summary: dev-java/netbeans-platform-8.0.2 with dev-java/oracle-jdk-bin:1.8 - .../work/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-11 10:29 UTC by Konstantin (elxa)
Modified: 2015-02-04 21:40 UTC (History)
2 users (show)

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


Attachments
netbeans-platform-8.0.2 build.log (netbeans-platform-8.0.2_build.log,46.88 KB, text/plain)
2014-12-11 10:30 UTC, Konstantin (elxa)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin (elxa) 2014-12-11 10:29:04 UTC
If the system vm is set to jdk 8 building netbeans packages fails demanding a jdk 7 compiler.

Reproducible: Always

Steps to Reproduce:
1. emerge dev-java/oracle-jdk-bin:1.8
2. eselect java-vm set system oracle-jdk-bin-1.8
3. emerge =dev-java/netbeans-platform-8.0.2
Actual Results:  
Build fails

Expected Results:  
Build succeeds

Temporarily changing the system vm to jdk 7 solves the problem

1. eselect java-vm set system icedtea-7
2. emerge -1vO dev-java/netbeans-platform:8.0
3. eselect java-vm set system oracle-jdk-bin-1.8

It seems all dev-java/netbeans-* packages have this problem (at least dev-java/netbeans-apisupport) ? Maybe even dev-util/netbeans ?

I worked around the problem upgrading everything netbeans related with

1. eselect java-vm set system icedtea-7
2. emerge -1uv `qlist -ISC netbeans`
3. eselect java-vm set system oracle-jdk-bin-1.8
Comment 1 Konstantin (elxa) 2014-12-11 10:30:06 UTC
Created attachment 391430 [details]
netbeans-platform-8.0.2 build.log
Comment 2 Konstantin (elxa) 2014-12-11 10:33:47 UTC
Running "qlist -ISC netbeans" on my system returns

dev-java/netbeans-apisupport:8.0
dev-java/netbeans-cnd:8.0
dev-java/netbeans-dlight:8.0
dev-java/netbeans-enterprise:8.0
dev-java/netbeans-extide:8.0
dev-java/netbeans-harness:8.0
dev-java/netbeans-ide:8.0
dev-java/netbeans-java:8.0
dev-java/netbeans-javafx:8.0
dev-java/netbeans-mobility:8.0
dev-java/netbeans-nb:8.0
dev-java/netbeans-platform:8.0
dev-java/netbeans-profiler:8.0
dev-java/netbeans-webcommon:8.0
dev-java/netbeans-websvccommon:8.0
dev-util/netbeans:8.0

I guess they all fail to build with jdk 8 as system vm.
Comment 3 Miroslav Šulc gentoo-dev 2015-02-04 21:40:36 UTC
all ebuilds are now restricted to jdk7 for compilation

note: the other option was to allow compilation with jdk8 too but at least netbeans-platform fails to compile with jdk8 so that option was dropped. up to that, compilation with jdk8 is not supported by upstream for version 8.0.*