--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/Utils.java Thu Nov 30 11:03:23 2017 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/common/Utils.java Thu Nov 30 11:28:47 2017 +0000
@@ -69,17 +69,18 @@
assert enabled = true;
ASSERTIONSENABLED = enabled;
}
- public static final boolean TESTING;
- static {
- if (ASSERTIONSENABLED) {
- PrivilegedAction<String> action = () -> System.getProperty("test.src");
- TESTING = AccessController.doPrivileged(action) != null;
- } else TESTING = false;
- }
+// public static final boolean TESTING;
+// static {
+// if (ASSERTIONSENABLED) {
+// PrivilegedAction<String> action = () -> System.getProperty("test.src");
+// TESTING = AccessController.doPrivileged(action) != null;
+// } else TESTING = false;
+// }
public static final boolean DEBUG = // Revisit: temporary dev flag.
getBooleanProperty(DebugLogger.HTTP_NAME, false);
public static final boolean DEBUG_HPACK = // Revisit: temporary dev flag.
getBooleanProperty(DebugLogger.HPACK_NAME, false);
+ public static final boolean TESTING = DEBUG;
/**
* Allocated buffer size. Must never be higher than 16K. But can be lower