Hiram R. Chirino 2006-09-06 00:40:48 +00:00
parent de62efbc78
commit 861a08912b

View File

@ -567,7 +567,7 @@ final public class OpenWireFormat implements WireFormat {
if( preferedWireFormatInfo==null ) if( preferedWireFormatInfo==null )
throw new IllegalStateException("Wireformat cannot not be renegociated."); throw new IllegalStateException("Wireformat cannot not be renegociated.");
this.setVersion(Math.max(preferedWireFormatInfo.getVersion(), info.getVersion()) ); this.setVersion(Math.min(preferedWireFormatInfo.getVersion(), info.getVersion()) );
this.stackTraceEnabled = info.isStackTraceEnabled() && preferedWireFormatInfo.isStackTraceEnabled(); this.stackTraceEnabled = info.isStackTraceEnabled() && preferedWireFormatInfo.isStackTraceEnabled();
this.tcpNoDelayEnabled = info.isTcpNoDelayEnabled() && preferedWireFormatInfo.isTcpNoDelayEnabled(); this.tcpNoDelayEnabled = info.isTcpNoDelayEnabled() && preferedWireFormatInfo.isTcpNoDelayEnabled();
this.cacheEnabled = info.isCacheEnabled() && preferedWireFormatInfo.isCacheEnabled(); this.cacheEnabled = info.isCacheEnabled() && preferedWireFormatInfo.isCacheEnabled();