diff --git a/jetty-io/src/main/java/org/eclipse/jetty/io/ByteArrayEndPoint.java b/jetty-io/src/main/java/org/eclipse/jetty/io/ByteArrayEndPoint.java index 6007a60a333..affe52518d1 100644 --- a/jetty-io/src/main/java/org/eclipse/jetty/io/ByteArrayEndPoint.java +++ b/jetty-io/src/main/java/org/eclipse/jetty/io/ByteArrayEndPoint.java @@ -40,12 +40,12 @@ public class ByteArrayEndPoint extends AbstractEndPoint static final Logger LOG = Log.getLogger(ByteArrayEndPoint.class); public final static InetSocketAddress NOIP=new InetSocketAddress(0); - protected ByteBuffer _in; - protected ByteBuffer _out; - protected boolean _ishut; - protected boolean _oshut; - protected boolean _closed; - protected boolean _growOutput; + protected volatile ByteBuffer _in; + protected volatile ByteBuffer _out; + protected volatile boolean _ishut; + protected volatile boolean _oshut; + protected volatile boolean _closed; + protected volatile boolean _growOutput; /* ------------------------------------------------------------ */ diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipFilterContentLengthTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipFilterContentLengthTest.java index 9e1d4aab145..accac175aeb 100644 --- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipFilterContentLengthTest.java +++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/GzipFilterContentLengthTest.java @@ -43,6 +43,8 @@ import org.hamcrest.Matchers; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; +import org.junit.rules.TestWatcher; +import org.junit.runner.Description; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; @@ -55,6 +57,21 @@ import org.junit.runners.Parameterized.Parameters; @RunWith(Parameterized.class) public class GzipFilterContentLengthTest { + + @Rule + public final TestWatcher testName = new TestWatcher() + { + + @Override + public void starting(Description description) + { + super.starting(description); + System.err.printf("Running %s.%s()%n", + description.getClassName(), + description.getMethodName()); + } + }; + /** * These are the junit parameters for running this test. *