--- a/jdk/src/share/classes/javax/management/remote/rmi/RMIConnector.java Thu Jun 21 00:20:49 2012 -0700
+++ b/jdk/src/share/classes/javax/management/remote/rmi/RMIConnector.java Fri Jun 22 16:22:22 2012 +0400
@@ -277,9 +277,9 @@
// Check for secure RMIServer stub if the corresponding
// client-side environment property is set to "true".
//
- boolean checkStub = EnvHelp.computeBooleanFromString(
- usemap,
- "jmx.remote.x.check.stub",false);
+ String stringBoolean = (String) usemap.get("jmx.remote.x.check.stub");
+ boolean checkStub = EnvHelp.computeBooleanFromString(stringBoolean);
+
if (checkStub) checkStub(stub, rmiServerImplStubClass);
// Connect IIOP Stub if needed.