lib/jrt-fs.jar is incompatible with Java 8
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openSUSE |
Won't Fix
|
Medium
|
|||
openjdk-9 (Debian) |
Fix Released
|
Unknown
|
|||
openjdk-9 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
A program running on Java 8 should be able to use the library to peek inside Java 9 (JEP 220 "Modular Run-Time Images" [1], section "New URI scheme ...").
Steps to reproduce:
1. Download an attached program
2. `apt install openjdk-8-jdk openjdk-9-jdk`
3. `/usr/lib/
4. `/usr/lib/
Expected result:
The program lists root directories of a runtime image (/packages, /modules) and finishes normally.
Actual result:
The program fails with the following exception:
Exception in thread "main" java.lang.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at jdk.internal.
at java.nio.
at ReadJrt.
Probable reason:
Classes in lib/jrt-fs.jar were compiled by Java 9 with options "-source 8"/"target 8". They should be compiled with "--release 8" option instead (or by Java 8).
[1] http://
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: openjdk-
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 24 20:06:01 2017
InstallationDate: Installed on 2017-09-29 (25 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170926)
SourcePackage: openjdk-9
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in opensuse: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in openjdk-9 (Debian): | |
status: | Unknown → New |
Changed in openjdk-9 (Debian): | |
status: | New → Fix Released |
Changed in opensuse: | |
status: | Confirmed → Won't Fix |
More information: https:/ /bugs.openjdk. java.net/ browse/ JDK-8174808? focusedCommentI d=14051330# comment- 14051330