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.
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.