← Back to team overview

openjdk team mailing list archive

[Bug 1722410] [NEW] java9: -version output seems wrong: "9-Ubuntu"

 

Public bug reported:

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/jvm/java-8-openjdk-amd64/bin/java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-8u144-b01-2-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: openjdk-9-jre 9~b181-4
ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
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)

** Affects: openjdk-9 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful wayland-session

** Attachment added: "Screenshot from 2017-10-09 18-28-26.png"
   https://bugs.launchpad.net/bugs/1722410/+attachment/4966280/+files/Screenshot%20from%202017-10-09%2018-28-26.png

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-9 in Ubuntu.
https://bugs.launchpad.net/bugs/1722410

Title:
  java9: -version output seems wrong: "9-Ubuntu"

Status in openjdk-9 package in Ubuntu:
  New

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/jvm/java-8-openjdk-amd64/bin/java -version
  openjdk version "1.8.0_144"
  OpenJDK Runtime Environment (build 1.8.0_144-8u144-b01-2-b01)
  OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: openjdk-9-jre 9~b181-4
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1722410/+subscriptions


Follow ups