JDK-4975867 : 1.4.2_03 (SUNWj3rt) incorrect becomes default java on S10 with 1.5.0 present.
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 1.4.2_04
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: generic
  • Submitted: 2004-01-09
  • Updated: 2004-02-18
  • Resolved: 2004-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2_04 04Fixed
Description
1.4.2_03 (SUNWj3rt) incorrect becomes default java on S10 with 1.5.0 present.

The /usr/java symlink should point to 1.5.x on a S10 system.  The
current postinstall script for 1.4.2_03 (SUNWj3rt) grabs control
of the /usr/java symlink even if 1.5.0 is present and already controls
the symlink.

This bug is actually present in all 1.3.x and 1.4.x releases, meaning
they will all disrupt S10 if installed there.  So while the first packages
to be fixed should be 1.4.2_04, any future releases of 1.3.1 and 1.4.1 should
also have this fix.


###@###.### 2004-01-08

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.4.2_04 generic FIXED IN: 1.4.2_04 INTEGRATED IN: 1.4.2_04 VERIFIED IN: 1.4.2_04
14-06-2004

SUGGESTED FIX The current case statement in the SUNWj3rt postinstall script is woefully out of date, and needs a specific case for both 9 and 10 I've modified a copy of 1.4.2_03, adding the following to the first case statement, and confirmed that this correctly installs 1.4.2 on S10, leaving 1.5.0 as the default. 8 ) if [ "$PKG_VERSION" = "1.2" ]; then DEFAULT=TRUE; else CheckIfDefault if [ $? -ne 0 ]; then DEFAULT=FALSE else DEFAULT=TRUE fi fi ;; 9 ) if [ "$PKG_VERSION" = "1.3" -o "$PKG_VERSION" = "1.4" ]; then DEFAULT=TRUE; else CheckIfDefault if [ $? -ne 0 ]; then DEFAULT=FALSE else DEFAULT=TRUE fi fi ;; 10 ) CheckIfDefault if [ $? -ne 0 ]; then DEFAULT=FALSE else DEFAULT=TRUE fi ;; * ) CheckIfDefault if [ $? -ne 0 ]; then DEFAULT=FALSE else DEFAULT=TRUE fi ;;
11-06-2004

EVALUATION ###@###.### 2004-01-09 This bug encountered because postinstall script does the adjustment to use the system default /usr/java symlink to point to latest java on the system. Postinstall script has not been modified for some time and is out of date. Checks suggested will ensure that 1.4.2_X allows higher versions to be system default. ###@###.### 2004-01-09 Fix applied only 1.4.2_X. Tiger does not require the fix as install scripts are rewritten..
09-01-2004