Filed on behalf of Sergei Ustimenko (merkel05@gmail.com).
In JDK9, the patch for JDK-8025886 fixed jdk/test/sun/management/jmxremote/bootstrap/GeneratePropertyPassword.sh to not use '==' bash syntax, but the patch didn't make it into newer releases. See http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/a2551e12a9ea for the trivial patch:
-if [[ $OS == CYGWIN_NT* ]] ; then
+case $OS in
+CYGWIN_NT*)
OS="Windows_NT"
if [ -z "$SystemRoot" ] ; then
- SystemRoot=$SYSTEMROOT
+ SystemRoot=$SYSTEMROOT
fi
-fi
+esac