JDK-8025886 : replace [[ and == bash extensions in regtest
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2013-10-03
  • Updated: 2020-09-01
  • Resolved: 2014-01-21
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.
JDK 9 Other
9 b02Fixed openjdk8u272Fixed
Related Reports
Relates :  
Description
test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh

contains the line
if [[ $OS == CYGWIN_NT* ]] ; then

bash understands [[ test command and == operator in the test command, but sh does not.

Comments
Fix Request (8u): Backport to 8u requested because, with this change applied, JDK-8192953 (that is a part of 8u271-oracle) will apply cleanly. Patch applies cleanly. Testing: jtreg:sun/management/jmxremote/bootstrap/ on Windows and Linux.
21-07-2020

Review threads: http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-October/012096.html http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-November/013281.html
20-01-2014