gradle: "illegal reflective access" with openjdk-9
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gradle (Ubuntu) |
Fix Released
|
Medium
|
Tiago Stürmer Daitx |
Bug Description
Since a couple of days, gradle doesn't work on Ubuntu 18.04 LTS any more on openjdk8. Installing openjdk9 kind of works around this problem, but it throws a couple of scary illegal access warnings instead. Just a days ago, everything worked fine so there must have been some bug introduced into a dependent package.
$ gradle -S
Starting a Gradle Daemon, 8 busy and 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
* What went wrong:
java.nio.
* Try:
Run with --info or --debug option to get more log output.
* Exception is:
java.lang.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at org.gradle.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at org.gradle.
at org.gradle.
at org.gradle.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gradle 3.4.1-4
ProcVersionSign
Uname: Linux 4.15.0-13-generic x86_64
ApportVersion: 2.20.9-0ubuntu2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 1 00:04:40 2018
InstallationDate: Installed on 2013-01-11 (1905 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: gradle
UpgradeStatus: Upgraded to bionic on 2018-03-07 (24 days ago)
I think the issue that Gradle has been updated to the Debian experimental version 3.4.1. Before, it was synched to "unstable" 3.2.1.