-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 5.0
-
Component/s: other-libs
-
rc
-
generic
-
generic
-
Not verified
property "com.sun.CORBA.MaxStreamFormatVersion" is not exposed as
ORB's property but exposed only as -D parameter
Their ValueHandler does System.getProperty() and sets it as "2" if
there is no property defined in system.
String propValue = (String) AccessController.doPrivileged(
new PrivilegedAction() {
public java.lang.Object run() {
return
System.getProperty(ValueHandlerImpl.FORMAT_VERSION_PROPERTY);
}
});
// The property wasn't set
if (propValue == null)
return MAX_SUPPORTED_FORMAT_VERSION; // this is (byte)2;
ORB's property but exposed only as -D parameter
Their ValueHandler does System.getProperty() and sets it as "2" if
there is no property defined in system.
String propValue = (String) AccessController.doPrivileged(
new PrivilegedAction() {
public java.lang.Object run() {
return
System.getProperty(ValueHandlerImpl.FORMAT_VERSION_PROPERTY);
}
});
// The property wasn't set
if (propValue == null)
return MAX_SUPPORTED_FORMAT_VERSION; // this is (byte)2;