java9: -version output seems wrong: "9-Ubuntu"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-9 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Unless something big changed upstream, or regarding a policy somewhere, the version string that's printed when you run "java -version" seems wrong with openjdk-9:
$ java -version
openjdk version "9-Ubuntu"
OpenJDK Runtime Environment (build 9-Ubuntu+0-9b181-4)
OpenJDK 64-Bit Server VM (build 9-Ubuntu+0-9b181-4, mixed mode)
That is causing at least one application I have, from the Brazilian IRS, to fail when parsing that string (screenshot attached):
"""
For input string: "9-U"
"""
It works just fine with jre 1.8, where the -version output is saner:
$ /usr/lib/
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: openjdk-9-jre 9~b181-4
ProcVersionSign
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 9 18:30:46 2017
InstallationDate: Installed on 2017-09-24 (14 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Alpha amd64 (20170919)
SourcePackage: openjdk-9
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.