Author: fschumacher Date: Sun Mar 13 14:48:21 2016 New Revision: 1734815 URL: http://svn.apache.org/viewvc?rev=1734815&view=rev Log: Use final on buffer to make it available in the CompletionHandler
Modified: tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java Modified: tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java URL: http://svn.apache.org/viewvc/tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java?rev=1734815&r1=1734814&r2=1734815&view=diff ============================================================================== --- tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java (original) +++ tomcat/tc8.5.x/trunk/test/org/apache/coyote/http11/upgrade/TestUpgradeInternalHandler.java Sun Mar 13 14:48:21 2016 @@ -192,7 +192,7 @@ public class TestUpgradeInternalHandler // Arbitrarily located in the init, could be in the initial read event, asynchronous, etc. // Note: the completion check used will not call the completion handler if the IO completed inline and without error. // Using a completion check that always calls complete would be easier here since the action is the same even with inline completion. - ByteBuffer buffer = ByteBuffer.allocate(1024); + final ByteBuffer buffer = ByteBuffer.allocate(1024); CompletionState state = wrapper.read(false, 10, TimeUnit.SECONDS, null, SocketWrapperBase.READ_DATA, new CompletionHandler<Long, Void>() { @Override public void completed(Long result, Void attachment) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org