changeset 10478:bc1e07d1e726

8179628: QPathTest might fail to catch errors due to GC bug in test Reviewed-by: kcr
author lbourges
date Fri, 05 May 2017 07:45:05 -0700
parents 344e91ef79de
children d4880c6fefec
files tests/system/src/test/java/test/com/sun/marlin/QPathTest.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/system/src/test/java/test/com/sun/marlin/QPathTest.java	Thu May 04 11:44:08 2017 -0700
+++ b/tests/system/src/test/java/test/com/sun/marlin/QPathTest.java	Fri May 05 07:45:05 2017 -0700
@@ -76,11 +76,13 @@
 
     static boolean doChecksFailed = false;
 
+    private static final Logger log;
+
     static {
         Locale.setDefault(Locale.US);
 
         // initialize j.u.l Looger:
-        final Logger log = Logger.getLogger("prism.marlin");
+        log = Logger.getLogger("prism.marlin");
         log.addHandler(new Handler() {
             @Override
             public void publish(LogRecord record) {