Bug 468484

Summary: IcedTea version string truncated?
Product: [Fedora] Fedora Reporter: Naveed Hasan <naveed>
Component: java-1.6.0-openjdkAssignee: Lillian Angel <langel>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 10CC: langel, lkundrak, mjw, mjw
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-02 13:45:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Provide full fedora package release version and arch none

Description Naveed Hasan 2008-10-25 02:58:37 UTC
Using java-1.6.0-openjdk-1.6.0.0-1.0.b12.fc10.x86_64 and running 'java -version', I get:

java version "1.6.0_0"
IcedTea6 1.3.1 Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)

The version string "1.6.0_0" and build id "1.6.0_0-b12" appear to be in contradiction to any of the the options for this specified at http://java.sun.com/j2se/versioning_naming.html

The version string shows up in various programs that try to check the version of an installed Java, which makes it hard to do things with it on a programmatic basis. Can this be fixed?

The latest Sun release has "1.6.0_10-b33" as a build id. Maybe something like "1.6.0-openjdk-b12" or "1.6.0-icedtea6-1.3.1" would serve the purpose here.

Thanks,
Naveed

Comment 1 Mark Wielaard 2008-10-27 14:03:11 UTC
New upstream has support for more precise version display, including configuring with --with-pkgversion to show the fedora package version.

Comment 2 Naveed Hasan 2008-11-15 04:56:00 UTC
Under java-1.6.0-openjdk-1.6.0.0-4.b12.fc10.x86_64 -

java version "1.6.0_0"
IcedTea6 1.4 (6b12-Fedora-10) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 10.0-b19, mixed mode)

The version string and build identifier are the same as before. Does something else need to be updated?

Comment 3 Mark Wielaard 2008-11-17 10:38:07 UTC
The spec file currently configures with --with-pkgversion=6%{openjdkver}-Fedora-%{fedora} that should be --with-pkgversion=%{release} or --with-pkgversion=Fedora-%{release}-%{arch} to include the actual distro version.

Comment 4 Mark Wielaard 2008-11-24 19:11:26 UTC
Created attachment 324527 [details]
Provide full fedora package release version and arch

Adding both ${release} and ${_arch} will provide the user with the most precise information (handy when they report a bug).

$ java -version
java version "1.6.0_0"
IcedTea6 1.4 (fedora-5.b12.fc9-x86_64) Runtime Environment (build 1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 10.0-b19, mixed mode)

Comment 5 Bug Zapper 2008-11-26 04:13:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping