Merge
authoramurillo
Wed, 14 Sep 2016 11:22:38 -0700
changeset 40851 db2d1f1874d7
parent 40850 493990e5914c (current diff)
parent 40843 8d602ded48c9 (diff)
child 40852 2526d9083e41
Merge
jdk/src/java.base/share/classes/sun/text/resources/BreakIteratorRulesProvider.java
jdk/src/jdk.localedata/share/classes/sun/text/resources/thai_dict
--- a/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -377,3 +377,4 @@
 2e83d21d78cd9c1d52e6cd2599e9c8aa36ea1f52 jdk-9+132
 e17429a7e843c4a4ed3651458d0f950970edcbcc jdk-9+133
 a71210c0d9800eb6925b61ecd6198abd554f90ee jdk-9+134
+e384420383a5b79fa0012ebcb25d8f83cff7f777 jdk-9+135
--- a/corba/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/corba/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -377,3 +377,4 @@
 1ab4b9399c4cba584f66c1c088188f2f565fbf9c jdk-9+132
 2021bfedf1c478a4808a7711a6090682a12f4c0e jdk-9+133
 1a497f5ca0cfd88115cc7daa8af8a62b8741caf2 jdk-9+134
+094d0db606db976045f594dba47d4593b715cc81 jdk-9+135
--- a/hotspot/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/hotspot/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -537,3 +537,4 @@
 713951c08aa26813375175c2ab6cc99ff2a56903 jdk-9+132
 a25e0fb6033245ab075136e744d362ce765464cd jdk-9+133
 b8b694c6b4d2ab0939aed7adaf0eec1ac321a085 jdk-9+134
+3b1c4562953db47e36b237a500f368d5c9746d47 jdk-9+135
--- a/jaxp/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -377,3 +377,4 @@
 907445d85e680ea410fe2c83c0ec64b5508e4f3e jdk-9+132
 9490ba2e5e41685c858a0ca2a6ec87611eb011c6 jdk-9+133
 1c6c21d87aa459d82425e1fddc9ce8647aebde34 jdk-9+134
+f695240370c77a25fed88225a392e7d530cb4d78 jdk-9+135
--- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/TransletOutput.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/compiler/TransletOutput.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,13 +1,14 @@
 /*
- * reserved comment block
- * DO NOT REMOVE OR ALTER!
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
  */
+
 /*
- * Copyright 2001-2004 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
  *
  *     http://www.apache.org/licenses/LICENSE-2.0
  *
@@ -17,9 +18,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-/*
- * $Id: TransletOutput.java,v 1.2.4.1 2005/09/05 09:19:44 pvedula Exp $
- */
 
 package com.sun.org.apache.xalan.internal.xsltc.compiler;
 
@@ -35,6 +33,7 @@
 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type;
 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.TypeCheckError;
 import com.sun.org.apache.xalan.internal.xsltc.compiler.util.Util;
+import jdk.xml.internal.JdkXmlFeatures;
 
 /**
  * @author Morten Jorgensen
@@ -103,8 +102,10 @@
         final InstructionList il = methodGen.getInstructionList();
         final boolean isSecureProcessing = classGen.getParser().getXSLTC()
                                            .isSecureProcessing();
+        final boolean isExtensionFunctionEnabled = classGen.getParser().getXSLTC()
+                .getFeature(JdkXmlFeatures.XmlFeature.ENABLE_EXTENSION_FUNCTION);
 
-        if (isSecureProcessing) {
+        if (isSecureProcessing && !isExtensionFunctionEnabled) {
             int index = cpg.addMethodref(BASIS_LIBRARY_CLASS,
                                          "unallowed_extension_elementF",
                                          "(Ljava/lang/String;)V");
--- a/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/AbstractTranslet.java	Wed Sep 14 11:22:38 2016 -0700
@@ -111,6 +111,9 @@
 
     private boolean _useServicesMechanism;
 
+    // The OutputStream for redirect function
+    private FileOutputStream output = null;
+
     /**
      * protocols allowed for external references set by the stylesheet processing instruction, Document() function, Import and Include element.
      */
@@ -567,9 +570,10 @@
                dir.mkdirs();
             }
 
+            output = new FileOutputStream(filename, append);
             factory.setEncoding(_encoding);
             factory.setOutputMethod(_method);
-            factory.setOutputStream(new BufferedOutputStream(new FileOutputStream(filename, append)));
+            factory.setOutputStream(new BufferedOutputStream(output));
             factory.setOutputType(TransletOutputHandlerFactory.STREAM);
 
             final SerializationHandler handler
@@ -594,6 +598,9 @@
         try {
             handler.endDocument();
             handler.close();
+            if (output != null) {
+                output.close();
+            }
         }
         catch (Exception e) {
             // what can you do?
--- a/jaxp/src/java.xml/share/classes/javax/xml/datatype/XMLGregorianCalendar.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/src/java.xml/share/classes/javax/xml/datatype/XMLGregorianCalendar.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1072,4 +1072,3 @@
     @Override
     public abstract Object clone();
 }
-
--- a/jaxp/src/java.xml/share/classes/module-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/src/java.xml/share/classes/module-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
     uses javax.xml.xpath.XPathFactory;
     uses org.xml.sax.XMLReader;
 }
-
--- a/jaxp/src/jdk.xml.dom/share/classes/module-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/src/jdk.xml.dom/share/classes/module-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -30,4 +30,3 @@
     exports org.w3c.dom.stylesheets;
     exports org.w3c.dom.xpath;
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/DurationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -587,4 +587,3 @@
     private final BigInteger one = BigInteger.ONE;
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/FactoryNewInstanceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/datatype/ptests/XMLGregorianCalendarTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -358,4 +358,3 @@
     private final int undef = DatatypeConstants.FIELD_UNDEFINED;
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DBFNamespaceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -105,5 +105,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -531,5 +531,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/DocumentBuilderImpl01.java	Wed Sep 14 11:22:38 2016 -0700
@@ -157,5 +157,3 @@
             return null;
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/FactoryConfErrorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -86,5 +86,3 @@
         DocumentBuilderFactory.newInstance();
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXFactoryNewInstanceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -78,5 +78,3 @@
     }
 
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserFactTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -229,5 +229,3 @@
         assertFalse(spf.getFeature(EXTERNAL_P_ENTITIES));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -502,5 +502,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest02.java	Wed Sep 14 11:22:38 2016 -0700
@@ -269,5 +269,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/parsers/ptests/SAXParserTest03.java	Wed Sep 14 11:22:38 2016 -0700
@@ -116,5 +116,3 @@
     }
 
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLEventFactoryNewInstanceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,5 +67,3 @@
     }
 
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/DOMResultTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -118,5 +118,3 @@
                 writeNodes(kids.item(i), bWriter);
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/ErrorListenerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -104,5 +104,3 @@
         this.status = ListenerStatus.FATAL;
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXSourceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -105,5 +105,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/SAXTFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -431,5 +431,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/StreamResultTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -106,5 +106,3 @@
         });
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TfClearParamTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -239,5 +239,3 @@
         assertNull(transformer.getParameter(LONG_PARAM_NAME));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -384,5 +384,3 @@
     private Document xmlDoc;
 
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerExcpTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -105,5 +105,3 @@
         assertNotNull(te.initCause(null));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -141,5 +141,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -207,5 +207,3 @@
         System.out.println(" In fatal");
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest02.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,5 +85,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/TransformerTest03.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,5 +94,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/URIResolverTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -262,5 +262,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/transform/ptests/othervm/TFCErrorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,5 +54,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/SchemaFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -404,4 +404,3 @@
     private Document xsdDoc2;
     private byte[] xml;
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/TypeInfoProviderTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -95,4 +95,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorHandlerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -148,4 +148,3 @@
     private Schema schema;
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/validation/ptests/ValidatorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -209,4 +209,3 @@
     private Document xmlDoc;
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathExpressionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -491,5 +491,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -218,5 +218,3 @@
         assertNotNull(XPathFactory.newInstance(DOM_OBJECT_MODEL));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathFunctionResolverTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,5 +82,3 @@
         assertEquals(xpath.evaluate(null, "5"), "2");
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/javax/xml/xpath/ptests/XPathTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -757,5 +757,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/AttrTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -151,4 +151,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/CommentTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -48,4 +48,3 @@
         return document.createComment(text);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -175,4 +175,3 @@
         doc.createElement("!nc$%^*(!");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DocumentTypeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/DomImplementationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -129,4 +129,3 @@
         assertEquals(documentType.getName(), name);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/ElementTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -255,4 +255,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/EntityChildTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
         assertEquals(nl.getLength(), 3);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NamedNodeMapTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -121,4 +121,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeListTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NodeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -211,4 +211,3 @@
         transformer.transform(domSource, streamResult);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/NotationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -74,4 +74,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/PITest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/TextTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -74,4 +74,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/w3c/dom/ptests/TypeInfoTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -140,4 +140,3 @@
 
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttrImplTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -202,5 +202,3 @@
         attr.removeAttribute(1);
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesNSTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -74,5 +74,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/AttributesTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,5 +76,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ContentHandlerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -264,5 +264,3 @@
             bWriter.close();
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/DefaultHandlerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -272,5 +272,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/EHFatalTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -135,5 +135,3 @@
         bWriter.close();
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -131,5 +131,3 @@
         assertNull(support.getURI(DC_PREFIX));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/NSTableTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -168,5 +168,3 @@
         assertFalse(spf.getFeature(NAMESPACE_PREFIXES));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -265,5 +265,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ResolverTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -143,5 +143,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/SAXParserNSTableTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -107,5 +107,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterCBTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -285,5 +285,3 @@
             bWriter.close();
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLFilterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -246,5 +246,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderAdapterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -112,5 +112,3 @@
         }
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,5 +76,3 @@
         XMLReaderFactory.createXMLReader("org.apache.crimson.parser.ABCD");
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderNSTableTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -131,5 +131,3 @@
         assertTrue(compareWithGold(goldFile, outputFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -671,5 +671,3 @@
     public void internalEntityDecl(String name, String value) {
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/AstroTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/AstroTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -145,4 +145,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/DocumentLSTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -182,4 +182,3 @@
         return dbf.newDocumentBuilder();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/NamespaceContextTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -89,4 +89,3 @@
         assertEquals(QName.valueOf(qname.toString()), qname);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/SAX201Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/SAX201Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -48,4 +48,3 @@
         reader.setDTDHandler(null); // SAX 2.0.1 allows
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/SchemaValidationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         return spf.newSAXParser();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/astro/XPathAPITest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/astro/XPathAPITest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -171,4 +171,3 @@
         return new InputSource(filenameToURL(ASTROCAT));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/AuctionController.java	Wed Sep 14 11:22:38 2016 -0700
@@ -366,5 +366,3 @@
         assertTrue(roletypeInfo.getTypeNamespace().equals(PORTAL_ACCOUNT_NS));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/AuctionItemRepository.java	Wed Sep 14 11:22:38 2016 -0700
@@ -371,5 +371,3 @@
         assertTrue(compareDocumentWithGold(goldFile, resultFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/UserController.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/auctionportal/UserController.java	Wed Sep 14 11:22:38 2016 -0700
@@ -304,5 +304,3 @@
         assertTrue(compareDocumentWithGold(goldFile, resultFile));
     }
 }
-
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4511326.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4512806.java	Wed Sep 14 11:22:38 2016 -0700
@@ -90,4 +90,3 @@
 
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4515047.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,4 +62,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java	Wed Sep 14 11:22:38 2016 -0700
@@ -128,4 +128,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4693341.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4848653.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/functional/test/gaptest/Bug4858685.java	Wed Sep 14 11:22:38 2016 -0700
@@ -247,4 +247,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/test/module-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/test/module-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,4 +24,4 @@
 module test {
     requires java.xml;
     exports test;
-}
\ No newline at end of file
+}
--- a/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/xmlprovider1/module-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/xmlprovider1/module-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,4 +31,4 @@
     provides javax.xml.transform.TransformerFactory with xp1.TransformerFactoryImpl;
     provides javax.xml.validation.SchemaFactory with xp1.SchemaFactoryImpl;
     provides javax.xml.xpath.XPathFactory with xp1.XPathFactoryImpl;
-}
\ No newline at end of file
+}
--- a/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/xmlprovider2/module-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/module/ServiceProviderTest/src/xmlprovider2/module-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -27,4 +27,4 @@
     provides javax.xml.datatype.DatatypeFactory with xp2.DatatypeFactoryImpl;
     provides javax.xml.stream.XMLEventFactory with xp2.XMLEventFactoryImpl;
     provides org.xml.sax.XMLReader with xp2.XMLReaderImpl;
-}
\ No newline at end of file
+}
--- a/jaxp/test/javax/xml/jaxp/unittest/common/Bug6350682.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/Bug6350682.java	Wed Sep 14 11:22:38 2016 -0700
@@ -75,4 +75,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/Bug6723276Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/Bug6723276Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,4 +68,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/Bug6941169Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/Bug6941169Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -486,4 +486,3 @@
         return document;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/Bug7143711Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/Bug7143711Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -114,4 +114,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/Sources.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/Sources.java	Wed Sep 14 11:22:38 2016 -0700
@@ -213,4 +213,3 @@
         return r;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/TestSAXDriver.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/TestSAXDriver.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
 
     private static final String ENT_EXP_LIMIT_PROP = "http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit";
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/TransformationWarningsTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -105,4 +105,3 @@
             + "</xsl:stylesheet>";
     private static final String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><root></root>";
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/common/ValidationWarningsTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,4 +85,3 @@
     private static final String xml = "<?xml version='1.0'?><test>Element</test>";
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6320118.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6320118.java	Wed Sep 14 11:22:38 2016 -0700
@@ -108,4 +108,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6937951Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -57,4 +57,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug6937964Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -270,4 +270,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/Bug7042647Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -60,4 +60,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/DatatypeFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -640,4 +640,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/DurationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/DurationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -484,4 +484,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/FactoryFindTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/JDK8068839Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -51,4 +51,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/datatype/XMLGregorianCalendarTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -228,4 +228,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4915524.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4915524.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
         return docBuilder.parse(source);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4915748.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4915748.java	Wed Sep 14 11:22:38 2016 -0700
@@ -74,4 +74,3 @@
         Assert.assertTrue(hadError[0]);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966082.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966082.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966138.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966138.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
         Assert.assertTrue(typeNs.length() != 0, "returned typeNamespace shouldn't be empty");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966142.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966142.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
         Assert.assertFalse(type.isDerivedFrom("testNS", "Test", TypeInfo.DERIVATION_UNION));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966143.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug4966143.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         Assert.assertTrue(type.isDerivedFrom("testNS", "Test", 0));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6339023.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6339023.java	Wed Sep 14 11:22:38 2016 -0700
@@ -139,4 +139,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6355326.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6355326.java	Wed Sep 14 11:22:38 2016 -0700
@@ -118,4 +118,3 @@
         return p;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6367542.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6367542.java	Wed Sep 14 11:22:38 2016 -0700
@@ -52,4 +52,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6520131.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6520131.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6521260.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6521260.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
         Assert.assertEquals(systemId, systemId2);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6582545Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6582545Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -123,4 +123,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6879614Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/Bug6879614Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -78,4 +78,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/CR6333993Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/CR6333993Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -88,4 +88,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/CR6517707Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/CR6517707Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -128,4 +128,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/CR6517717Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/CR6517717Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -86,4 +86,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/CR6909336Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/CR6909336Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -72,4 +72,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1628,4 +1628,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/DOMXPathTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/DOMXPathTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
         Assert.assertEquals(domImpl.getFeature("+XPath", "3.0"), null);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ElementTraversal.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ElementTraversal.java	Wed Sep 14 11:22:38 2016 -0700
@@ -135,4 +135,3 @@
         return doc;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/JdkXmlDomTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -46,4 +46,3 @@
         Assert.assertTrue(runWithAllPerm(() -> cls.getClassLoader()) != null);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/TCKEncodingTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -102,4 +102,3 @@
         System.out.println("OK");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug4973153.java	Wed Sep 14 11:22:38 2016 -0700
@@ -204,4 +204,3 @@
         return true;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6290947.java	Wed Sep 14 11:22:38 2016 -0700
@@ -147,4 +147,3 @@
         return src;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6354955.java	Wed Sep 14 11:22:38 2016 -0700
@@ -142,4 +142,3 @@
         return documentBuilder.newDocument();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6376823.java	Wed Sep 14 11:22:38 2016 -0700
@@ -121,4 +121,3 @@
         return src;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/Bug6710741Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -80,4 +80,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSParserTCKTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -584,4 +584,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSParserTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -109,4 +109,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/dom/ls/LSSerializerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -319,4 +319,3 @@
         Assert.assertEquals(XML11_DOCUMENT_OUTPUT, defaultSerialization, "Invalid serialization of XML 1.1 document: ");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4674384_MAX_OCCURS_Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
         System.out.println("Success: File " + XML_FILE_NAME + " was parsed with a large value of maxOccurs.");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4934208.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4934208.java	Wed Sep 14 11:22:38 2016 -0700
@@ -74,4 +74,3 @@
         r.parse(is);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4967002.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4967002.java	Wed Sep 14 11:22:38 2016 -0700
@@ -101,4 +101,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4985486.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4985486.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,4 +68,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4991020.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4991020.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         parser.parse(Bug4991020.class.getResource("Bug4991020.xml").toExternalForm(), new util.DraconianErrorHandler());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4991946.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug4991946.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         parser.parse(Bug4991946.class.getResource("Bug4991946.xml").toExternalForm(), new util.DraconianErrorHandler());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug5010072.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug5010072.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug5025825.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug5025825.java	Wed Sep 14 11:22:38 2016 -0700
@@ -89,4 +89,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6309988.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6309988.java	Wed Sep 14 11:22:38 2016 -0700
@@ -370,4 +370,3 @@
         return System.getSecurityManager() != null;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6341770.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6341770.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
         System.out.println("OK.");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6361283.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6361283.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6506304Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -71,4 +71,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6518733.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6518733.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6564400.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6564400.java	Wed Sep 14 11:22:38 2016 -0700
@@ -180,4 +180,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6573786.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6573786.java	Wed Sep 14 11:22:38 2016 -0700
@@ -73,4 +73,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6573786ErrorHandler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6573786ErrorHandler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -45,4 +45,3 @@
         System.out.println(e.getMessage());
     } // warning ()
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6594813.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6594813.java	Wed Sep 14 11:22:38 2016 -0700
@@ -175,4 +175,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6608841.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6608841.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
     public class MyHandler extends DefaultHandler {
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6690015.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6690015.java	Wed Sep 14 11:22:38 2016 -0700
@@ -87,4 +87,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6760982.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6760982.java	Wed Sep 14 11:22:38 2016 -0700
@@ -168,4 +168,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug6849942Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug7157608Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -218,4 +218,3 @@
         boolean validating = false;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug7166896Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -80,4 +80,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8003147Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -93,4 +93,3 @@
         }, new FilePermission(getSystemProperty("test.classes") + "/-", "read,write"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8003147TestClass.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8003147TestClass.java	Wed Sep 14 11:22:38 2016 -0700
@@ -32,4 +32,3 @@
     public void doSomething(double d, ArrayList<Integer> list) {
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8073385.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/Bug8073385.java	Wed Sep 14 11:22:38 2016 -0700
@@ -100,4 +100,3 @@
         assertTrue(exceptionText.contains("Unicode: " + hexString));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/FactoryFindTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -75,4 +75,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/MyDefaultHandler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/MyDefaultHandler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -45,4 +45,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/MyErrorHandler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/MyErrorHandler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         errorOccured = true;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/ParseEmptyStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/SupplementaryChars.java	Wed Sep 14 11:22:38 2016 -0700
@@ -71,4 +71,3 @@
         return parser;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/parsers/xinclude/Bug6794483Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -107,4 +107,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Attributes2ImplTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -153,4 +153,3 @@
         Assert.assertTrue(impl1.getQName(2).equals(impl3.getQName(2)));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6889654Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6889654Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -87,4 +87,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6925410Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6925410Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -60,4 +60,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6949607Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6949607Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6992561Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Bug6992561Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -86,4 +86,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/Bug7057778Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/Bug7057778Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -199,4 +199,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/DefaultHandler2Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -251,4 +251,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -142,4 +142,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/MyDefaultHandler2.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/MyDefaultHandler2.java	Wed Sep 14 11:22:38 2016 -0700
@@ -198,4 +198,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/NSSupportTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/NSSupportTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -232,4 +232,3 @@
         Assert.assertNull(nssupport.getURI(""));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/SAXExceptionExt.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/SAXExceptionExt.java	Wed Sep 14 11:22:38 2016 -0700
@@ -38,4 +38,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/sax/XMLReaderTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/sax/XMLReaderTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
         XMLReaderAdapter adapter = new XMLReaderAdapter();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/AttributeLocalNameTest/AttributeLocalNameTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6370703.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6370703.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6378422.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6378422.java	Wed Sep 14 11:22:38 2016 -0700
@@ -51,4 +51,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6380870.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6380870.java	Wed Sep 14 11:22:38 2016 -0700
@@ -58,4 +58,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6489502.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6489502.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6509774.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6509774.java	Wed Sep 14 11:22:38 2016 -0700
@@ -174,4 +174,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6688002Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6688002Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -113,4 +113,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6976938Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/Bug6976938Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -100,4 +100,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/CoalesceTest/CoalesceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -110,4 +110,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EntitiesTest/EntityTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -179,4 +179,3 @@
         return true;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EventReaderDelegateTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -231,4 +231,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue41Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -178,4 +178,3 @@
         System.out.println(sw.toString());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue48Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -115,4 +115,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue53Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -71,4 +71,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/EventsTest/Issue58Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -84,4 +84,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/FactoryFindTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/FactoryFindTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -151,4 +151,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/IgnoreExternalDTDTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/ProcessingInstructionTest/ProcessingInstructionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/StreamReaderDelegateTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -383,4 +383,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventLocationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6489890.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6555001.java	Wed Sep 14 11:22:38 2016 -0700
@@ -116,4 +116,3 @@
         }, new FilePermission("/tmp/this/does/not/exist/but/that/is/ok", "read"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6586466Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6613059Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -89,4 +89,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6668115Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -100,4 +100,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug6846133Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Bug8153781.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventReaderTest/Issue40Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -100,4 +100,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/ReaderToWriterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -214,4 +214,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLEventWriterTest/XMLEventWriterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -156,4 +156,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6756677Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -113,4 +113,3 @@
         Assert.assertTrue(xif instanceof XMLInputFactory, "xif should be an instance of XMLInputFactory");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/Bug6909759Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/IssueTracker38.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
 
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/MyInputFactory.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLInputFactoryTest/MyInputFactory.java	Wed Sep 14 11:22:38 2016 -0700
@@ -158,4 +158,3 @@
         throw new UnsupportedOperationException("Not supported yet.");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/Bug6846132Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -89,4 +89,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/DuplicateNSDeclarationTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
         Assert.assertEquals(EXPECTED_OUTPUT, buffer.toString());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLOutputFactoryTest/StreamResultTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -162,4 +162,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLResolverTest/XMLResolverTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -96,4 +96,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamExceptionTest/ExceptionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481615.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,4 +68,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/Bug6481678.java	Wed Sep 14 11:22:38 2016 -0700
@@ -225,4 +225,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -145,4 +145,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTypeFilter.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamFilterTest/HasNextTypeFilter.java	Wed Sep 14 11:22:38 2016 -0700
@@ -47,4 +47,3 @@
         return types[r.getEventType()];
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6388460.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6472982Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -79,4 +79,3 @@
         return sbuffer.toString();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6767322Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BugTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -51,4 +51,3 @@
         Assert.assertEquals(XMLStreamConstants.START_DOCUMENT, r.getEventType());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DefaultAttributeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -108,4 +108,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/DoubleXmlnsTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -118,4 +118,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IsValidatingTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -165,4 +165,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue44Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Issue47Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -89,4 +89,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker24.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker35.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/IssueTracker70.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         Assert.assertNotNull(value, "should have attribute value");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req5Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -91,4 +91,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Jsr173MR1Req8Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/NamespaceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -153,4 +153,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/StreamReaderTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,4 +62,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/SupportDTDTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -288,4 +288,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/VoiceXMLDTDTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -58,4 +58,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/XML11Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/AttributeEscapeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -103,4 +103,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6452107.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6600882Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug6675332Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -164,4 +164,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/Bug7037352Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -65,4 +65,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DOMUtil.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DOMUtil.java	Wed Sep 14 11:22:38 2016 -0700
@@ -221,4 +221,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/DomUtilTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -124,4 +124,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,4 +85,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EncodingTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -110,4 +110,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NamespaceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1434,4 +1434,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
         w.writeCharacters("---");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SqeLinuxTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -88,4 +88,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/SurrogatesTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -175,4 +175,3 @@
         };
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/UnprefixedNameTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -125,4 +125,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/WriterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -784,4 +784,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/XMLStreamWriterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -73,4 +73,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug4693341Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug4693341Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug4892774.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug4892774.java	Wed Sep 14 11:22:38 2016 -0700
@@ -377,4 +377,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug5073477.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug5073477.java	Wed Sep 14 11:22:38 2016 -0700
@@ -55,4 +55,3 @@
         r.setNextSibling(r.getNode().getFirstChild());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6175602.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6175602.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6206491.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6206491.java	Wed Sep 14 11:22:38 2016 -0700
@@ -134,4 +134,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6216226Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6216226Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6311448.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6311448.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,4 +85,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6384805.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6384805.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6465722.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6465722.java	Wed Sep 14 11:22:38 2016 -0700
@@ -72,4 +72,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6467808.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6467808.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6490380.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6490380.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6490921.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6490921.java	Wed Sep 14 11:22:38 2016 -0700
@@ -145,4 +145,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6513892.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6513892.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6537167.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6537167.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,4 +85,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6540545.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6540545.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6551616.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6551616.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,4 +68,3 @@
         // if it doesn't blow up, it succeeded.
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6559595.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6559595.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6565260.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6565260.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6940416.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Bug6940416.java	Wed Sep 14 11:22:38 2016 -0700
@@ -115,4 +115,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/BugDB12665704Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -157,4 +157,3 @@
         return sb.toString();
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CLITest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CLITest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -50,4 +50,3 @@
         }, new PropertyPermission("*", "read,write"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6401137Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6401137Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6551600Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6551600Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
                 : new FilePermission("///tmp/test.xml", "read,write,delete"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6577667Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6577667Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6652519Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6652519Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -79,4 +79,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6689809Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6689809Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -64,4 +64,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6905829Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6905829Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -65,4 +65,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6935697Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6935697Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -77,4 +77,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6941869Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6941869Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR6957215Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR6957215Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -99,4 +99,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/CR7098746Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/CR7098746Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -90,4 +90,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/DOMResultTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/DOMResultTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -215,4 +215,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/DocumentExtFunc.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/DocumentExtFunc.java	Wed Sep 14 11:22:38 2016 -0700
@@ -33,4 +33,3 @@
         return "["+node.getNodeName() + ":" + node.getTextContent()+"]";
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/FactoryFindTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/FactoryFindTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -75,4 +75,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Issue2204Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Issue2204Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/Issue2290Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/Issue2290Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -96,4 +96,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/OpenJDK100017Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/SAX2DOMTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -198,4 +198,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/SecureProcessingTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -135,4 +135,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/SourceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/SourceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -148,4 +148,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/StAXSourceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/StAXSourceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -129,4 +129,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/TemplatesTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/TemplatesTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
             + "      contains($validAffectsRelClasses, @Class)]/@OBID)\"/>"
             + "</xsl:stylesheet>";
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerFactoryTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -153,4 +153,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -439,4 +439,3 @@
         Assert.assertNull(document.getElementsByTagName("test6").item(0).getNamespaceURI(), "unexpected namespace for test6");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerUtilFactory.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/TransformerUtilFactory.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
             return null;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/VersionDefaultHandler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/VersionDefaultHandler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,4 +62,3 @@
         return encoding;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/VersionEventWriter.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/VersionEventWriter.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
         return encoding;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/XSLTFunctionsTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -23,9 +23,12 @@
 
 package transform;
 
+import java.io.IOException;
 import java.io.StringReader;
 import java.io.StringWriter;
-
+import java.nio.file.Files;
+import java.nio.file.Path;
+import java.nio.file.Paths;
 import javax.xml.transform.Source;
 import javax.xml.transform.Transformer;
 import javax.xml.transform.TransformerException;
@@ -54,8 +57,39 @@
  * @summary This class contains tests for XSLT functions.
  */
 
-@Listeners({jaxp.library.BasePolicy.class})
+@Listeners({jaxp.library.FilePolicy.class})
 public class XSLTFunctionsTest {
+    /**
+     * @bug 8165116
+     * Verifies that redirect works properly when extension function is enabled
+     *
+     * @param xml the XML source
+     * @param xsl the stylesheet that redirect output to a file
+     * @param output the output file
+     * @param redirect the redirect file
+     * @throws Exception if the test fails
+     **/
+    @Test(dataProvider = "redirect")
+    public void testRedirect(String xml, String xsl, String output, String redirect) throws Exception {
+
+        TransformerFactory tf = TransformerFactory.newInstance();
+        tf.setFeature(ORACLE_ENABLE_EXTENSION_FUNCTION, true);
+        Transformer t = tf.newTransformer(new StreamSource(new StringReader(xsl)));
+
+        //Transform the xml
+        t.transform(new StreamSource(new StringReader(xml)), new StreamResult(new StringWriter()));
+
+        // Verifies that the output is redirected successfully
+        String userDir = getSystemProperty("user.dir");
+        Path pathOutput = Paths.get(userDir, output);
+        Path pathRedirect = Paths.get(userDir, redirect);
+        Assert.assertTrue(Files.exists(pathOutput));
+        Assert.assertTrue(Files.exists(pathRedirect));
+        System.out.println("Output to " + pathOutput + " successful.");
+        System.out.println("Redirect to " + pathRedirect + " successful.");
+        Files.deleteIfExists(pathOutput);
+        Files.deleteIfExists(pathRedirect);
+    }
 
     /**
      * @bug 8161454
@@ -177,6 +211,13 @@
         };
     }
 
+    @DataProvider(name = "redirect")
+    public static Object[][] getData() {
+        return new Object[][] {
+            {documentTestXml, xslRedirect, "testoutput.xml", "testredirect.xml"},
+        };
+    }
+
     static final String documentTestXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Test>Doc</Test>";
 
     static final String documentTestExternalDoc = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><Test>External Doc</Test>";
@@ -197,6 +238,23 @@
     static final String documentTesteExpectedResult = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                                                     + "<root>[Test:Doc][Test:External Doc]</root>";
 
+    static String xslRedirect = " <xsl:stylesheet \n"
+            + "   xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"\n"
+            + "   xmlns:xsltc=\"http://xml.apache.org/xalan/xsltc\"\n"
+            + "   xmlns:redirect=\"http://xml.apache.org/xalan/redirect\"\n"
+            + "   extension-element-prefixes=\"xsltc redirect\"\n"
+            + "   version=\"1.0\">\n"
+            + "   <xsl:template match=\"/\">\n"
+            + "     <xsl:text>This goes to standard output</xsl:text>\n"
+            + "     <xsltc:output file=\"testoutput.xml\">\n"
+            + "       <xsl:text>This ends up in the file 'testoutput.xml'</xsl:text>\n"
+            + "     </xsltc:output>\n"
+            + "     <redirect:write file=\"testredirect.xml\">\n"
+            + "       <xsl:text>This ends up in the file 'testredirect.xml'</xsl:text>\n"
+            + "     </redirect:write>\n"
+            + "   </xsl:template>\n"
+            + "</xsl:stylesheet>";
+
     public static final String ORACLE_JAXP_PROPERTY_PREFIX =
         "http://www.oracle.com/xml/jaxp/properties/";
     /**
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/sax/Bug6451633.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,4 +62,3 @@
         Assert.assertEquals(0, ((Document) result.getNode()).getDocumentElement().getChildNodes().getLength());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/util/DOMUtil.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/util/DOMUtil.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,4 +68,3 @@
         Assert.assertTrue(version.equals(resultVersion), "Expected XML Version is 1.1, but actual version " + resultVersion);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/util/SAXUtil.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/util/SAXUtil.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
         Assert.assertTrue(encoding.equals(resultEncoding), "Expected XML Version is " + encoding + " , but actual  encoding " + resultEncoding);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/util/StAXUtil.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/util/StAXUtil.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
         ((StreamUtil) TransformerUtilFactory.getUtil(TransformerUtilFactory.STREAM)).checkStream(new FileInputStream(TEMP_FILE), version);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/transform/util/StreamUtil.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/transform/util/StreamUtil.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
         Assert.assertTrue(dh.getEncoding().equals(encoding), "Expected version is " + encoding + " actual version " + dh.getEncoding());
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/util/BOMInputStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/util/BOMInputStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -78,4 +78,3 @@
         }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/util/BaseStAXUT.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/util/BaseStAXUT.java	Wed Sep 14 11:22:38 2016 -0700
@@ -557,4 +557,3 @@
         System.err.println("Skipping " + clsName + "#" + method + ": entity expansion does not seem to be functioning properly" + msg + ".");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/AnyElementTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/AnyElementTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -85,4 +85,3 @@
 
     private Validator validator;
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4966232.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4966232.java	Wed Sep 14 11:22:38 2016 -0700
@@ -75,4 +75,3 @@
         Assert.assertNotNull(s);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4966254.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4966254.java	Wed Sep 14 11:22:38 2016 -0700
@@ -78,4 +78,3 @@
         return s;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969042.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969042.java	Wed Sep 14 11:22:38 2016 -0700
@@ -111,4 +111,3 @@
         Assert.assertTrue(invoked[1], "Method characters() was not invoked.");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969089.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969089.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,4 +76,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969110.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969110.java	Wed Sep 14 11:22:38 2016 -0700
@@ -79,4 +79,3 @@
         validatorHandler.setProperty(name, "123");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969689.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969689.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969692.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969692.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969693.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969693.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969695.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969695.java	Wed Sep 14 11:22:38 2016 -0700
@@ -65,4 +65,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969732.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4969732.java	Wed Sep 14 11:22:38 2016 -0700
@@ -112,4 +112,3 @@
         parse(xmlReader, XML);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970380.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970380.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,4 +62,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970383.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970383.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970400.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970400.java	Wed Sep 14 11:22:38 2016 -0700
@@ -48,4 +48,3 @@
         validatorHandler.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970402.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970402.java	Wed Sep 14 11:22:38 2016 -0700
@@ -123,4 +123,3 @@
         parse(xmlReader, XML);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970951.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4970951.java	Wed Sep 14 11:22:38 2016 -0700
@@ -126,4 +126,3 @@
         parse(xmlReader, XML);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4971605.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4971605.java	Wed Sep 14 11:22:38 2016 -0700
@@ -66,4 +66,3 @@
         Assert.assertNotNull(schema, "Failed: newSchema returned null.");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4971607.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4971607.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4972882.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4972882.java	Wed Sep 14 11:22:38 2016 -0700
@@ -67,4 +67,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4986844.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4986844.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4987574.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4987574.java	Wed Sep 14 11:22:38 2016 -0700
@@ -60,4 +60,3 @@
         schemaFactory.newSchema(tmpFile);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988267.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988267.java	Wed Sep 14 11:22:38 2016 -0700
@@ -56,4 +56,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988268.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988268.java	Wed Sep 14 11:22:38 2016 -0700
@@ -46,4 +46,3 @@
         schemaFactory.newSchema(Bug4988268.class.getResource("Bug4988268.xsd"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988387.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4988387.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4996446.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4996446.java	Wed Sep 14 11:22:38 2016 -0700
@@ -90,4 +90,3 @@
         errorCounter++;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4997818.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug4997818.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,4 +81,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug5011500.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug5011500.java	Wed Sep 14 11:22:38 2016 -0700
@@ -108,4 +108,3 @@
         validator.validate(xmlSource);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug5072946.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug5072946.java	Wed Sep 14 11:22:38 2016 -0700
@@ -125,4 +125,3 @@
         Assert.assertSame(r.getNode(), n);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6378043.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6378043.java	Wed Sep 14 11:22:38 2016 -0700
@@ -53,4 +53,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6449797.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6449797.java	Wed Sep 14 11:22:38 2016 -0700
@@ -46,4 +46,3 @@
         SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(getClass().getResource("Bug6449797.xsd"));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6457662.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6457662.java	Wed Sep 14 11:22:38 2016 -0700
@@ -86,4 +86,3 @@
         return rtn;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6467424Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6467424Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -205,4 +205,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6483188.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6483188.java	Wed Sep 14 11:22:38 2016 -0700
@@ -88,4 +88,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6493687.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6493687.java	Wed Sep 14 11:22:38 2016 -0700
@@ -48,4 +48,3 @@
         System.out.println("Got here3");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6509668.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6509668.java	Wed Sep 14 11:22:38 2016 -0700
@@ -141,4 +141,3 @@
         parse(xmlReader, XML);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6526547.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6526547.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6531160.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6531160.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6695843Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6695843Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6773084Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6773084Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -160,4 +160,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6859210.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6859210.java	Wed Sep 14 11:22:38 2016 -0700
@@ -100,4 +100,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6925531Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6925531Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -210,4 +210,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6946312Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6946312Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -128,4 +128,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Bug6954738_Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/CR6708840Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/CR6708840Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -140,4 +140,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/CR6740048.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/CR6740048.java	Wed Sep 14 11:22:38 2016 -0700
@@ -131,4 +131,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/ErrorHandlerImpl.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/ErrorHandlerImpl.java	Wed Sep 14 11:22:38 2016 -0700
@@ -45,4 +45,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/Issue682Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/Issue682Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -78,4 +78,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/IssueTracker30.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/IssueTracker30.java	Wed Sep 14 11:22:38 2016 -0700
@@ -132,4 +132,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/JaxpIssue43Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -84,4 +84,3 @@
         return list.toArray(new Source[list.size()]);
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/JaxpIssue49.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/JaxpIssue49.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,4 +94,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/LargeMaxOccursTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -109,4 +109,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/MultiOccursTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/MultiOccursTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -147,4 +147,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/MultiOccursUnboundedTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -115,4 +115,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/OccursTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/OccursTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -147,4 +147,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/OccursUnboundedTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -115,4 +115,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/OccursWildcardTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -147,4 +147,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/OccursWildcardUnbounded.java	Wed Sep 14 11:22:38 2016 -0700
@@ -115,4 +115,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesId005Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -99,4 +99,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesIg004Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -57,4 +57,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/ParticlesQ013Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -98,4 +98,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/SchemaTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/SchemaTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
         factory.newSchema(new File(getClass().getResource("Bug8149915.xsd").getFile()));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/TCKGroupA008Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -60,4 +60,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/ValidatorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/ValidatorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -208,4 +208,3 @@
         return xmlr;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/XMLDocBuilder.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/XMLDocBuilder.java	Wed Sep 14 11:22:38 2016 -0700
@@ -141,4 +141,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/XMLSchemaValidator.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/XMLSchemaValidator.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
         validator.validate(new DOMSource(node));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6943252Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,4 +69,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6963124Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6963468Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -148,4 +148,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6964720Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -58,4 +58,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6967214Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6970890Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -72,4 +72,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6971190Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -102,4 +102,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6974551Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -122,4 +122,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6975265Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -71,4 +71,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6977201Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -71,4 +71,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug6989956Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -148,4 +148,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/Bug7014246Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,4 +59,3 @@
     }
 
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/ParticleTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -63,4 +63,3 @@
         validator.validate(new StreamSource(ParticleTest.class.getResourceAsStream("upa01.xml")));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/validation/tck/RegexWord.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/validation/tck/RegexWord.java	Wed Sep 14 11:22:38 2016 -0700
@@ -63,4 +63,3 @@
         validator.validate(new StreamSource(RegexWord.class.getResourceAsStream("reZ003vExc23082309.xml")));
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4991857.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4991857.java	Wed Sep 14 11:22:38 2016 -0700
@@ -92,4 +92,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4991939.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4991939.java	Wed Sep 14 11:22:38 2016 -0700
@@ -61,4 +61,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992788.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992788.java	Wed Sep 14 11:22:38 2016 -0700
@@ -82,4 +82,3 @@
         return xpath;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992793.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992793.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,4 +83,3 @@
         return xpath;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992805.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/Bug4992805.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,4 +70,3 @@
         return xpath;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/ClassLoaderTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,4 +54,3 @@
 
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/MyClassLoader.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/MyClassLoader.java	Wed Sep 14 11:22:38 2016 -0700
@@ -47,4 +47,3 @@
         return isCalled;
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/SecureProcessingTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -196,4 +196,3 @@
         }
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/XPathAnyTypeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -200,4 +200,3 @@
         verifyResult(result, "Customer");
     }
 }
-
--- a/jaxp/test/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxp/test/javax/xml/jaxp/unittest/xpath/XPathExpAnyTypeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -187,4 +187,3 @@
     }
 
 }
-
--- a/jaxws/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/jaxws/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -380,3 +380,4 @@
 9fff2477a4cadf2a9618a76f1f4fe0f20bb5ff3b jdk-9+132
 05e99eefda2b58d1ed176e411302d9d6b35dca16 jdk-9+133
 ab1d78d395d4cb8be426ff181211da1a4085cf01 jdk-9+134
+22631824f55128a7ab6605493b3001a37af6a168 jdk-9+135
--- a/jdk/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -377,3 +377,4 @@
 d5c70818cd8a82e76632c8c815bdb4f75f53aeaf jdk-9+132
 3cdae27c90b5e41afe75eab904fda19fac076330 jdk-9+133
 803adcd526d74ae0b64948d1f8260c2dbe514779 jdk-9+134
+021369229cfd0b5feb76834b2ea498f47f43c0f3 jdk-9+135
--- a/jdk/make/gendata/GendataBreakIterator.gmk	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/make/gendata/GendataBreakIterator.gmk	Wed Sep 14 11:22:38 2016 -0700
@@ -81,7 +81,7 @@
 
 # output
 BASE_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/java.base/sun/text/resources
-LD_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources
+LD_DATA_PKG_DIR := $(JDK_OUTPUTDIR)/modules/jdk.localedata/sun/text/resources/ext
 BIFILES := $(BASE_DATA_PKG_DIR)/CharacterBreakIteratorData \
     $(BASE_DATA_PKG_DIR)/WordBreakIteratorData \
     $(BASE_DATA_PKG_DIR)/LineBreakIteratorData \
--- a/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/Package.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/Package.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -476,7 +476,8 @@
             } else if (localICs.isEmpty()) {
                 // It was a non-empty diff, but the local ICs were absent.
                 actualICs = null;
-                changed = 0;  // [] => null, no tuple change
+                // [] => null, no tuple change, but attribute deletion.
+                changed = -1;
             } else {
                 // Non-trivial diff was transmitted.
                 actualICs = computeICdiff();
--- a/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/PackageReader.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/PackageReader.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -1193,18 +1193,21 @@
         cls.visitRefs(VRM_CLASSIC, cpRefs);
 
         ArrayList<BootstrapMethodEntry> bsms = new ArrayList<>();
-        /*
-         * BootstrapMethod(BSMs) are added here before InnerClasses(ICs),
-         * so as to ensure the order. Noting that the BSMs  may be
-         * removed if they are not found in the CP, after the ICs expansion.
-         */
-        cls.addAttribute(Package.attrBootstrapMethodsEmpty.canonicalInstance());
-
         // flesh out the local constant pool
         ConstantPool.completeReferencesIn(cpRefs, true, bsms);
 
+        // add the bsm and references as required
+        if (!bsms.isEmpty()) {
+            cls.addAttribute(Package.attrBootstrapMethodsEmpty.canonicalInstance());
+            cpRefs.add(Package.getRefString("BootstrapMethods"));
+            Collections.sort(bsms);
+            cls.setBootstrapMethods(bsms);
+        }
+
         // Now that we know all our local class references,
         // compute the InnerClasses attribute.
+        // An InnerClasses attribute usually gets added here,
+        // although it might already have been present.
         int changed = cls.expandLocalICs();
 
         if (changed != 0) {
@@ -1221,16 +1224,6 @@
             ConstantPool.completeReferencesIn(cpRefs, true, bsms);
         }
 
-        // remove the attr previously set, otherwise add the bsm and
-        // references as required
-        if (bsms.isEmpty()) {
-            cls.attributes.remove(Package.attrBootstrapMethodsEmpty.canonicalInstance());
-        } else {
-            cpRefs.add(Package.getRefString("BootstrapMethods"));
-            Collections.sort(bsms);
-            cls.setBootstrapMethods(bsms);
-        }
-
         // construct a local constant pool
         int numDoubles = 0;
         for (Entry e : cpRefs) {
--- a/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/intrinsic.properties	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/intrinsic.properties	Wed Sep 14 11:22:38 2016 -0700
@@ -18,7 +18,7 @@
 pack.class.attribute.Module = NH[RUHFH]NH[RUHNH[RUH]]NH[RCH]NH[RCHRCH]
 pack.class.attribute.ConcealedPackages = NH[RUH]
 pack.class.attribute.Version = RUH
-pack.class.attribute.MainClass = RUH
+pack.class.attribute.MainClass = RCH
 pack.class.attribute.TargetPlatform = RUHRUHRUH
 pack.class.attribute.Hashes = RUHNH[RUHRUH]
 
--- a/jdk/src/java.base/share/classes/java/lang/ClassLoader.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/ClassLoader.java	Wed Sep 14 11:22:38 2016 -0700
@@ -27,6 +27,7 @@
 
 import java.io.InputStream;
 import java.io.IOException;
+import java.io.UncheckedIOException;
 import java.io.File;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
@@ -46,12 +47,16 @@
 import java.util.Map;
 import java.util.Objects;
 import java.util.Set;
+import java.util.Spliterator;
+import java.util.Spliterators;
 import java.util.Stack;
 import java.util.NoSuchElementException;
 import java.util.Vector;
 import java.util.WeakHashMap;
 import java.util.concurrent.ConcurrentHashMap;
+import java.util.function.Supplier;
 import java.util.stream.Stream;
+import java.util.stream.StreamSupport;
 
 import jdk.internal.perf.PerfCounter;
 import jdk.internal.module.ServicesCatalog;
@@ -1167,17 +1172,7 @@
     protected final Class<?> findSystemClass(String name)
         throws ClassNotFoundException
     {
-        ClassLoader system = getSystemClassLoader();
-        if (system == null) {
-            if (!checkName(name))
-                throw new ClassNotFoundException(name);
-            Class<?> cls = findBootstrapClass(name);
-            if (cls == null) {
-                throw new ClassNotFoundException(name);
-            }
-            return cls;
-        }
-        return system.loadClass(name);
+        return getSystemClassLoader().loadClass(name);
     }
 
     /**
@@ -1354,6 +1349,57 @@
     }
 
     /**
+     * Returns a stream whose elements are the URLs of all the resources with
+     * the given name. A resource is some data (images, audio, text, etc) that
+     * can be accessed by class code in a way that is independent of the
+     * location of the code.
+     *
+     * Resources in a named module are private to that module. This method does
+     * not find resources in named modules.
+     *
+     * <p> The name of a resource is a {@code /}-separated path name that
+     * identifies the resource.
+     *
+     * <p> The search order is described in the documentation for {@link
+     * #getResource(String)}.
+     *
+     * <p> The resources will be located when the returned stream is evaluated.
+     * If the evaluation results in an {@code IOException} then the I/O
+     * exception is wrapped in an {@link UncheckedIOException} that is then
+     * thrown.
+     *
+     * @apiNote When overriding this method it is recommended that an
+     * implementation ensures that any delegation is consistent with the {@link
+     * #getResource(java.lang.String) getResource(String)} method. This should
+     * ensure that the first element returned by the stream is the same
+     * resource that the {@code getResource(String)} method would return.
+     *
+     * @param  name
+     *         The resource name
+     *
+     * @return  A stream of resource {@link java.net.URL URL} objects. If no
+     *          resources could  be found, the stream will be empty.  Resources
+     *          that the class loader doesn't have access to will not be in the
+     *          stream.
+     *
+     * @see  #findResources(String)
+     *
+     * @since  9
+     */
+    public Stream<URL> resources(String name) {
+        int characteristics = Spliterator.NONNULL | Spliterator.IMMUTABLE;
+        Supplier<Spliterator<URL>> si = () -> {
+            try {
+                return Spliterators.spliteratorUnknownSize(
+                    getResources(name).asIterator(), characteristics);
+            } catch (IOException e) {
+                throw new UncheckedIOException(e);
+            }
+        };
+        return StreamSupport.stream(si, characteristics, false);
+    }
+
+    /**
      * Finds the resource with the given name. Class loader implementations
      * should override this method to specify where to find resources.
      *
@@ -1437,11 +1483,7 @@
      * @since  1.1
      */
     public static URL getSystemResource(String name) {
-        ClassLoader system = getSystemClassLoader();
-        if (system == null) {
-            return BootLoader.findResource(name);
-        }
-        return system.getResource(name);
+        return getSystemClassLoader().getResource(name);
     }
 
     /**
@@ -1464,17 +1506,13 @@
      *
      * @throws  IOException
      *          If I/O errors occur
-
+     *
      * @since  1.2
      */
     public static Enumeration<URL> getSystemResources(String name)
         throws IOException
     {
-        ClassLoader system = getSystemClassLoader();
-        if (system == null) {
-            return BootLoader.findResources(name);
-        }
-        return system.getResources(name);
+        return getSystemClassLoader().getResources(name);
     }
 
     /**
@@ -1631,8 +1669,7 @@
      * this method during startup should take care not to cache the return
      * value until the system is fully initialized.
      *
-     * @return  The system <tt>ClassLoader</tt> for delegation, or
-     *          <tt>null</tt> if none
+     * @return  The system <tt>ClassLoader</tt> for delegation
      *
      * @throws  SecurityException
      *          If a security manager is present, and the caller's class loader
@@ -1941,9 +1978,14 @@
      * @return The {@code Package} of the given name defined by this class loader,
      *         or {@code null} if not found
      *
+     * @throws  NullPointerException
+     *          if {@code name} is {@code null}.
+     *
      * @since  9
      */
     public final Package getDefinedPackage(String name) {
+        Objects.requireNonNull(name, "name cannot be null");
+
         NamedPackage p = packages.get(name);
         if (p == null)
             return null;
@@ -1981,6 +2023,9 @@
      * @return The {@code Package} corresponding to the given name defined by
      *         this class loader or its ancestors, or {@code null} if not found.
      *
+     * @throws  NullPointerException
+     *          if {@code name} is {@code null}.
+     *
      * @deprecated
      * If multiple class loaders delegate to each other and define classes
      * with the same package name, and one such loader relies on the lookup
--- a/jdk/src/java.base/share/classes/java/lang/Compiler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Compiler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -29,21 +29,18 @@
  * The {@code Compiler} class is provided to support Java-to-native-code
  * compilers and related services. By design, the {@code Compiler} class does
  * nothing; it serves as a placeholder for a JIT compiler implementation.
+ * If no compiler is available, these methods do nothing.
  *
- * <p> When the Java Virtual Machine first starts, it determines if the system
- * property {@code java.compiler} exists. (System properties are accessible
- * through {@link System#getProperty(String)} and {@link
- * System#getProperty(String, String)}.  If so, it is assumed to be the name of
- * a library (with a platform-dependent exact location and type); {@link
- * System#loadLibrary} is called to load that library. If this loading
- * succeeds, the function named {@code java_lang_Compiler_start()} in that
- * library is called.
- *
- * <p> If no compiler is available, these methods do nothing.
+ * @deprecated JIT compilers and their technologies vary too widely to
+ * be controlled effectively by a standardized interface. As such, many
+ * JIT compiler implementations ignore this interface, and are instead
+ * controllable by implementation-specific mechanisms such as command-line
+ * options. This class is subject to removal in a future version of Java SE.
  *
  * @author  Frank Yellin
  * @since   1.0
  */
+@Deprecated(since="9", forRemoval=true)
 public final class Compiler  {
     private Compiler() {}               // don't make instances
 
--- a/jdk/src/java.base/share/classes/java/lang/Package.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Package.java	Wed Sep 14 11:22:38 2016 -0700
@@ -317,6 +317,9 @@
      * @return The {@code Package} of the given name defined by the caller's
      *         class loader or its ancestors, or {@code null} if not found.
      *
+     * @throws NullPointerException
+     *         if {@code name} is {@code null}.
+     *
      * @deprecated
      * If multiple class loaders delegate to each other and define classes
      * with the same package name, and one such loader relies on the lookup
--- a/jdk/src/java.base/share/classes/java/lang/Runtime.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/Runtime.java	Wed Sep 14 11:22:38 2016 -0700
@@ -733,6 +733,7 @@
      * @deprecated
      * This method was intended to control instruction tracing.
      * It has been superseded by JVM-specific tracing mechanisms.
+     * This method is subject to removal in a future version of Java SE.
      *
      * @param on ignored
      */
@@ -745,6 +746,7 @@
      * @deprecated
      * This method was intended to control method call tracing.
      * It has been superseded by JVM-specific tracing mechanisms.
+     * This method is subject to removal in a future version of Java SE.
      *
      * @param on ignored
      */
--- a/jdk/src/java.base/share/classes/java/lang/RuntimePermission.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/RuntimePermission.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -323,11 +323,9 @@
  *   <td>usePolicy</td>
  *   <td>Granting this permission disables the Java Plug-In's default
  *   security prompting behavior.</td>
- *   <td>For more information, refer to Java Plug-In's guides, <a href=
- *   "../../../technotes/guides/plugin/developer_guide/security.html">
- *   Applet Security Basics</a> and <a href=
- *   "../../../technotes/guides/plugin/developer_guide/rsa_how.html#use">
- *   usePolicy Permission</a>.</td>
+ *   <td>For more information, refer to the <a href=
+ *   "../../../technotes/guides/deploy/index.html">deployment guide</a>.
+ *   </td>
  * </tr>
  * <tr>
  *   <td>manageProcess</td>
--- a/jdk/src/java.base/share/classes/java/lang/StringConcatHelper.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/StringConcatHelper.java	Wed Sep 14 11:22:38 2016 -0700
@@ -334,11 +334,15 @@
     /**
      * Instantiates the String with given buffer and coder
      * @param buf     buffer to use
+     * @param index   remaining index
      * @param coder   coder to use
      * @return String resulting string
      */
-    static String newString(byte[] buf, byte coder) {
+    static String newString(byte[] buf, int index, byte coder) {
         // Use the private, non-copying constructor (unsafe!)
+        if (index != 0) {
+            throw new InternalError("Storage is not completely initialized, " + index + " bytes left");
+        }
         return new String(buf, coder);
     }
 
--- a/jdk/src/java.base/share/classes/java/lang/invoke/LambdaFormEditor.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/LambdaFormEditor.java	Wed Sep 14 11:22:38 2016 -0700
@@ -83,7 +83,9 @@
                 FOLD_ARGS = 11,
                 FOLD_ARGS_TO_VOID = 12,
                 PERMUTE_ARGS = 13,
-                LOCAL_TYPES = 14;
+                LOCAL_TYPES = 14,
+                FOLD_SELECT_ARGS = 15,
+                FOLD_SELECT_ARGS_TO_VOID = 16;
 
         private static final boolean STRESS_TEST = false; // turn on to disable most packing
         private static final int
@@ -695,6 +697,72 @@
         return buf.endEdit();
     }
 
+    private LambdaForm makeArgumentCombinationForm(int pos,
+                                                   MethodType combinerType,
+                                                   int[] argPositions,
+                                                   boolean keepArguments,
+                                                   boolean dropResult) {
+        LambdaFormBuffer buf = buffer();
+        buf.startEdit();
+        int combinerArity = combinerType.parameterCount();
+        assert(combinerArity == argPositions.length);
+
+        int resultArity = (dropResult ? 0 : 1);
+
+        assert(pos <= lambdaForm.arity);
+        assert(pos > 0);  // cannot filter the MH arg itself
+        assert(combinerType == combinerType.basicType());
+        assert(combinerType.returnType() != void.class || dropResult);
+
+        BoundMethodHandle.SpeciesData oldData = oldSpeciesData();
+        BoundMethodHandle.SpeciesData newData = newSpeciesData(L_TYPE);
+
+        // The newly created LF will run with a different BMH.
+        // Switch over any pre-existing BMH field references to the new BMH class.
+        Name oldBaseAddress = lambdaForm.parameter(0);  // BMH holding the values
+        buf.replaceFunctions(oldData.getterFunctions(), newData.getterFunctions(), oldBaseAddress);
+        Name newBaseAddress = oldBaseAddress.withConstraint(newData);
+        buf.renameParameter(0, newBaseAddress);
+
+        Name getCombiner = new Name(newData.getterFunction(oldData.fieldCount()), newBaseAddress);
+        Object[] combinerArgs = new Object[1 + combinerArity];
+        combinerArgs[0] = getCombiner;
+        Name[] newParams;
+        if (keepArguments) {
+            newParams = new Name[0];
+            for (int i = 0; i < combinerArity; i++) {
+                combinerArgs[i + 1] = lambdaForm.parameter(1 + argPositions[i]);
+                assert (basicType(combinerType.parameterType(i)) == lambdaForm.parameterType(1 + argPositions[i]));
+            }
+        } else {
+            newParams = new Name[combinerArity];
+            for (int i = 0; i < newParams.length; i++) {
+                newParams[i] = lambdaForm.parameter(1 + argPositions[i]);
+                assert (basicType(combinerType.parameterType(i)) == lambdaForm.parameterType(1 + argPositions[i]));
+            }
+            System.arraycopy(newParams, 0,
+                             combinerArgs, 1, combinerArity);
+        }
+        Name callCombiner = new Name(combinerType, combinerArgs);
+
+        // insert the two new expressions
+        int exprPos = lambdaForm.arity();
+        buf.insertExpression(exprPos+0, getCombiner);
+        buf.insertExpression(exprPos+1, callCombiner);
+
+        // insert new arguments, if needed
+        int argPos = pos + resultArity;  // skip result parameter
+        for (Name newParam : newParams) {
+            buf.insertParameter(argPos++, newParam);
+        }
+        assert(buf.lastIndexOf(callCombiner) == exprPos+1+newParams.length);
+        if (!dropResult) {
+            buf.replaceParameterByCopy(pos, exprPos+1+newParams.length);
+        }
+
+        return buf.endEdit();
+    }
+
     LambdaForm filterReturnForm(BasicType newType, boolean constantZero) {
         byte kind = (constantZero ? Transform.FILTER_RETURN_TO_ZERO : Transform.FILTER_RETURN);
         Transform key = Transform.of(kind, newType.ordinal());
@@ -759,6 +827,21 @@
         return putInCache(key, form);
     }
 
+    LambdaForm foldArgumentsForm(int foldPos, boolean dropResult, MethodType combinerType, int ... argPositions) {
+        byte kind = (dropResult ? Transform.FOLD_SELECT_ARGS_TO_VOID
+                                : Transform.FOLD_SELECT_ARGS);
+        int[] keyArgs = Arrays.copyOf(argPositions, argPositions.length + 1);
+        keyArgs[argPositions.length] = foldPos;
+        Transform key = Transform.of(kind, keyArgs);
+        LambdaForm form = getInCache(key);
+        if (form != null) {
+            assert(form.arity == lambdaForm.arity - (kind == Transform.FOLD_SELECT_ARGS ? 1 : 0));
+            return form;
+        }
+        form = makeArgumentCombinationForm(foldPos, combinerType, argPositions, true, dropResult);
+        return putInCache(key, form);
+    }
+
     LambdaForm permuteArgumentsForm(int skip, int[] reorder) {
         assert(skip == 1);  // skip only the leading MH argument, names[0]
         int length = lambdaForm.names.length;
--- a/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/MethodHandles.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3943,6 +3943,33 @@
         return rtype;
     }
 
+    private static Class<?> foldArgumentChecks(int foldPos, MethodType targetType, MethodType combinerType, int ... argPos) {
+        int foldArgs = combinerType.parameterCount();
+        if (argPos.length != foldArgs) {
+            throw newIllegalArgumentException("combiner and argument map must be equal size", combinerType, argPos.length);
+        }
+        Class<?> rtype = combinerType.returnType();
+        int foldVals = rtype == void.class ? 0 : 1;
+        boolean ok = true;
+        for (int i = 0; i < foldArgs; i++) {
+            int arg = argPos[i];
+            if (arg < 0 || arg > targetType.parameterCount()) {
+                throw newIllegalArgumentException("arg outside of target parameterRange", targetType, arg);
+            }
+            if (combinerType.parameterType(i) != targetType.parameterType(arg)) {
+                throw newIllegalArgumentException("target argument type at position " + arg
+                        + " must match combiner argument type at index " + i + ": " + targetType
+                        + " -> " + combinerType + ", map: " + Arrays.toString(argPos));
+            }
+        }
+        if (ok && foldVals != 0 && combinerType.returnType() != targetType.parameterType(foldPos)) {
+            ok = false;
+        }
+        if (!ok)
+            throw misMatchedTypes("target and combiner types", targetType, combinerType);
+        return rtype;
+    }
+
     /**
      * Makes a method handle which adapts a target method handle,
      * by guarding it with a test, a boolean-valued method handle.
@@ -4949,6 +4976,27 @@
         return result;
     }
 
+    /**
+     * As {@see foldArguments(MethodHandle, int, MethodHandle)}, but with the
+     * added capability of selecting the arguments from the targets parameters
+     * to call the combiner with. This allows us to avoid some simple cases of
+     * permutations and padding the combiner with dropArguments to select the
+     * right argument, which may ultimately produce fewer intermediaries.
+     */
+    static MethodHandle foldArguments(MethodHandle target, int pos, MethodHandle combiner, int ... argPositions) {
+        MethodType targetType = target.type();
+        MethodType combinerType = combiner.type();
+        Class<?> rtype = foldArgumentChecks(pos, targetType, combinerType, argPositions);
+        BoundMethodHandle result = target.rebind();
+        boolean dropResult = rtype == void.class;
+        LambdaForm lform = result.editor().foldArgumentsForm(1 + pos, dropResult, combinerType.basicType(), argPositions);
+        MethodType newType = targetType;
+        if (!dropResult) {
+            newType = newType.dropParameterTypes(pos, pos + 1);
+        }
+        result = result.copyWithExtendL(newType, lform, combiner);
+        return result;
+    }
 
     private static void checkLoop0(MethodHandle[][] clauses) {
         if (clauses == null || clauses.length == 0) {
--- a/jdk/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/StringConcatFactory.java	Wed Sep 14 11:22:38 2016 -0700
@@ -563,9 +563,8 @@
         }
 
         if ((lookup.lookupModes() & MethodHandles.Lookup.PRIVATE) == 0) {
-            throw new StringConcatException(String.format(
-                    "Invalid caller: %s",
-                    lookup.lookupClass().getName()));
+            throw new StringConcatException("Invalid caller: " +
+                    lookup.lookupClass().getName());
         }
 
         int cCount = 0;
@@ -1494,51 +1493,41 @@
             // Drop all remaining parameter types, leave only helper arguments:
             MethodHandle mh;
 
-            mh = MethodHandles.dropArguments(NEW_STRING, 2, ptypes);
-            mh = MethodHandles.dropArguments(mh, 0, int.class);
+            mh = MethodHandles.dropArguments(NEW_STRING, 3, ptypes);
 
-            // Safety: check that remaining index is zero -- that would mean the storage is completely
-            // overwritten, and no leakage of uninitialized data occurred.
-            mh = MethodHandles.filterArgument(mh, 0, CHECK_INDEX);
-
-            // Mix in prependers. This happens when (int, byte[], byte) = (index, storage, coder) is already
+            // Mix in prependers. This happens when (byte[], int, byte) = (storage, index, coder) is already
             // known from the combinators below. We are assembling the string backwards, so "index" is the
             // *ending* index.
             for (RecipeElement el : recipe.getElements()) {
-                MethodHandle prepender;
+                // Do the prepend, and put "new" index at index 1
+                mh = MethodHandles.dropArguments(mh, 2, int.class);
                 switch (el.getTag()) {
-                    case TAG_CONST:
+                    case TAG_CONST: {
                         Object cnst = el.getValue();
-                        prepender = MethodHandles.insertArguments(prepender(cnst.getClass()), 3, cnst);
+                        MethodHandle prepender = MethodHandles.insertArguments(prepender(cnst.getClass()), 3, cnst);
+                        mh = MethodHandles.foldArguments(mh, 1, prepender,
+                                2, 0, 3 // index, storage, coder
+                        );
                         break;
-                    case TAG_ARG:
+                    }
+                    case TAG_ARG: {
                         int pos = el.getArgPos();
-                        prepender = selectArgument(prepender(ptypes[pos]), 3, ptypes, pos);
+                        MethodHandle prepender = prepender(ptypes[pos]);
+                        mh = MethodHandles.foldArguments(mh, 1, prepender,
+                                2, 0, 3, // index, storage, coder
+                                4 + pos  // selected argument
+                        );
                         break;
+                    }
                     default:
                         throw new StringConcatException("Unhandled tag: " + el.getTag());
                 }
-
-                // Remove "old" index from arguments
-                mh = MethodHandles.dropArguments(mh, 1, int.class);
-
-                // Do the prepend, and put "new" index at index 0
-                mh = MethodHandles.foldArguments(mh, prepender);
             }
 
-            // Prepare the argument list for prepending. The tree below would instantiate
-            // the storage byte[] into argument 0, so we need to swap "storage" and "index".
-            // The index at this point equals to "size", and resides at argument 1.
-            {
-                MethodType nmt = mh.type()
-                        .changeParameterType(0, byte[].class)
-                        .changeParameterType(1, int.class);
-                mh = MethodHandles.permuteArguments(mh, nmt, swap10(nmt.parameterCount()));
-            }
-
-            // Fold in byte[] instantiation at argument 0.
-            MethodHandle combiner = MethodHandles.dropArguments(NEW_ARRAY, 2, ptypes);
-            mh = MethodHandles.foldArguments(mh, combiner);
+            // Fold in byte[] instantiation at argument 0
+            mh = MethodHandles.foldArguments(mh, 0, NEW_ARRAY,
+                    1, 2 // index, coder
+            );
 
             // Start combining length and coder mixers.
             //
@@ -1567,12 +1556,8 @@
                         int ac = el.getArgPos();
 
                         Class<?> argClass = ptypes[ac];
-                        MethodHandle lm = selectArgument(lengthMixer(argClass), 1, ptypes, ac);
-                        lm = MethodHandles.dropArguments(lm, 0, byte.class); // (*)
-                        lm = MethodHandles.dropArguments(lm, 2, byte.class);
-
-                        MethodHandle cm = selectArgument(coderMixer(argClass),  1, ptypes, ac);
-                        cm = MethodHandles.dropArguments(cm, 0, int.class);  // (**)
+                        MethodHandle lm = lengthMixer(argClass);
+                        MethodHandle cm = coderMixer(argClass);
 
                         // Read this bottom up:
 
@@ -1580,12 +1565,18 @@
                         mh = MethodHandles.dropArguments(mh, 2, int.class, byte.class);
 
                         // 3. Compute "new-index", producing ("new-index", "new-coder", "old-index", "old-coder", <args>)
-                        //    Length mixer ignores both "new-coder" and "old-coder" due to dropArguments above (*)
-                        mh = MethodHandles.foldArguments(mh, lm);
+                        //    Length mixer needs old index, plus the appropriate argument
+                        mh = MethodHandles.foldArguments(mh, 0, lm,
+                                2, // old-index
+                                4 + ac // selected argument
+                        );
 
                         // 2. Compute "new-coder", producing ("new-coder", "old-index", "old-coder", <args>)
-                        //    Coder mixer ignores the "old-index" arg due to dropArguments above (**)
-                        mh = MethodHandles.foldArguments(mh, cm);
+                        //    Coder mixer needs old coder, plus the appropriate argument.
+                        mh = MethodHandles.foldArguments(mh, 0, cm,
+                                2, // old-coder
+                                3 + ac // selected argument
+                        );
 
                         // 1. The mh shape here is ("old-index", "old-coder", <args>)
                         break;
@@ -1606,41 +1597,11 @@
             return mh;
         }
 
-        private static int[] swap10(int count) {
-            int[] perm = new int[count];
-            perm[0] = 1;
-            perm[1] = 0;
-            for (int i = 2; i < count; i++) {
-                perm[i] = i;
-            }
-            return perm;
-        }
-
-        // Adapts: (...prefix..., parameter[pos])R -> (...prefix..., ...parameters...)R
-        private static MethodHandle selectArgument(MethodHandle mh, int prefix, Class<?>[] ptypes, int pos) {
-            if (pos == 0) {
-                return MethodHandles.dropArguments(mh, prefix + 1, Arrays.copyOfRange(ptypes, 1, ptypes.length));
-            } else if (pos == ptypes.length - 1) {
-                return MethodHandles.dropArguments(mh, prefix, Arrays.copyOf(ptypes, ptypes.length - 1));
-            } else { // 0 < pos < ptypes.size() - 1
-                MethodHandle t = MethodHandles.dropArguments(mh, prefix, Arrays.copyOf(ptypes, pos));
-                return MethodHandles.dropArguments(t, prefix + 1 + pos, Arrays.copyOfRange(ptypes, pos + 1, ptypes.length));
-            }
-        }
-
         @ForceInline
         private static byte[] newArray(int length, byte coder) {
             return (byte[]) UNSAFE.allocateUninitializedArray(byte.class, length << coder);
         }
 
-        @ForceInline
-        private static int checkIndex(int index) {
-            if (index != 0) {
-                throw new IllegalStateException("Storage is not completely initialized, " + index + " bytes left");
-            }
-            return index;
-        }
-
         private static MethodHandle prepender(Class<?> cl) {
             return PREPENDERS.computeIfAbsent(cl, PREPEND);
         }
@@ -1678,7 +1639,6 @@
         };
 
         private static final MethodHandle NEW_STRING;
-        private static final MethodHandle CHECK_INDEX;
         private static final MethodHandle NEW_ARRAY;
         private static final ConcurrentMap<Class<?>, MethodHandle> PREPENDERS;
         private static final ConcurrentMap<Class<?>, MethodHandle> LENGTH_MIXERS;
@@ -1699,9 +1659,8 @@
             LENGTH_MIXERS = new ConcurrentHashMap<>();
             CODER_MIXERS = new ConcurrentHashMap<>();
 
-            NEW_STRING = lookupStatic(Lookup.IMPL_LOOKUP, STRING_HELPER, "newString", String.class, byte[].class, byte.class);
+            NEW_STRING = lookupStatic(Lookup.IMPL_LOOKUP, STRING_HELPER, "newString", String.class, byte[].class, int.class, byte.class);
             NEW_ARRAY  = lookupStatic(Lookup.IMPL_LOOKUP, MethodHandleInlineCopyStrategy.class, "newArray", byte[].class, int.class, byte.class);
-            CHECK_INDEX = lookupStatic(Lookup.IMPL_LOOKUP, MethodHandleInlineCopyStrategy.class, "checkIndex", int.class, int.class);
         }
     }
 
--- a/jdk/src/java.base/share/classes/java/lang/invoke/VarHandle.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/VarHandle.java	Wed Sep 14 11:22:38 2016 -0700
@@ -152,7 +152,6 @@
  * {@link #getAndAdd getAndAdd},
  * {@link #getAndAddAcquire getAndAddAcquire},
  * {@link #getAndAddRelease getAndAddRelease},
- * {@link #addAndGet addAndGet}.
  * <li>bitwise atomic update access modes that, for example, atomically get and
  * bitwise OR the value of a variable under specified memory ordering
  * effects.
--- a/jdk/src/java.base/share/classes/java/lang/ref/package-info.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/lang/ref/package-info.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -43,8 +43,7 @@
  * implementing memory-sensitive caches, weak references are for
  * implementing canonicalizing mappings that do not prevent their keys
  * (or values) from being reclaimed, and phantom references are for
- * scheduling pre-mortem cleanup actions in a more flexible way than
- * is possible with the Java finalization mechanism.
+ * scheduling post-mortem cleanup actions.
  * Post-mortem cleanup actions can be registered and managed by a
  * {@link java.lang.ref.Cleaner}.
  *
--- a/jdk/src/java.base/share/classes/java/security/DigestInputStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/security/DigestInputStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -52,7 +52,7 @@
  * {@link MessageDigest}),
  * so that in order to compute intermediate digests, a caller should
  * retain a handle onto the digest object, and clone it for each
- * digest to be computed, leaving the orginal digest untouched.
+ * digest to be computed, leaving the original digest untouched.
  *
  * @see MessageDigest
  *
--- a/jdk/src/java.base/share/classes/java/security/KeyPairGenerator.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/security/KeyPairGenerator.java	Wed Sep 14 11:22:38 2016 -0700
@@ -76,7 +76,7 @@
  * {@code g} parameters. If the modulus size is not one of the above
  * values, the <i>Sun</i> provider creates a new set of parameters. Other
  * providers might have precomputed parameter sets for more than just the
- * three modulus sizes mentioned above. Still others might not have a list of
+ * modulus sizes mentioned above. Still others might not have a list of
  * precomputed parameters at all and instead always create new parameter sets.
  *
  * <li><b>Algorithm-Specific Initialization</b>
@@ -393,7 +393,7 @@
      * of randomness.
      * (If none of the installed providers supply an implementation of
      * {@code SecureRandom}, a system-provided source of randomness is
-     * used.).
+     * used.)
      *
      * <p>This concrete method has been added to this previously-defined
      * abstract class.
--- a/jdk/src/java.base/share/classes/java/security/SignatureSpi.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/security/SignatureSpi.java	Wed Sep 14 11:22:38 2016 -0700
@@ -38,7 +38,7 @@
  * for the {@code Signature} class, which is used to provide the
  * functionality of a digital signature algorithm. Digital signatures are used
  * for authentication and integrity assurance of digital data.
- *.
+ *
  * <p> All the abstract methods in this class must be implemented by each
  * cryptographic service provider who wishes to supply the implementation
  * of a particular signature algorithm.
--- a/jdk/src/java.base/share/classes/java/util/ArrayDeque.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/ArrayDeque.java	Wed Sep 14 11:22:38 2016 -0700
@@ -81,8 +81,8 @@
  * Java Collections Framework</a>.
  *
  * @author  Josh Bloch and Doug Lea
+ * @param <E> the type of elements held in this deque
  * @since   1.6
- * @param <E> the type of elements held in this deque
  */
 public class ArrayDeque<E> extends AbstractCollection<E>
                            implements Deque<E>, Cloneable, Serializable
--- a/jdk/src/java.base/share/classes/java/util/ImmutableCollections.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/ImmutableCollections.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,6 +31,10 @@
 import java.io.ObjectOutputStream;
 import java.io.ObjectStreamException;
 import java.io.Serializable;
+import java.util.function.BiFunction;
+import java.util.function.Function;
+import java.util.function.Predicate;
+import java.util.function.UnaryOperator;
 
 /**
  * Container class for immutable collections. Not part of the public API.
@@ -61,9 +65,25 @@
      */
     static final double EXPAND_FACTOR = 2.0;
 
+    static UnsupportedOperationException uoe() { return new UnsupportedOperationException(); }
+
     // ---------- List Implementations ----------
 
-    static final class List0<E> extends AbstractList<E> implements RandomAccess, Serializable {
+    abstract static class AbstractImmutableList<E> extends AbstractList<E>
+                                                implements RandomAccess, Serializable {
+        @Override public boolean add(E e) { throw uoe(); }
+        @Override public boolean addAll(Collection<? extends E> c) { throw uoe(); }
+        @Override public boolean addAll(int index, Collection<? extends E> c) { throw uoe(); }
+        @Override public void    clear() { throw uoe(); }
+        @Override public boolean remove(Object o) { throw uoe(); }
+        @Override public boolean removeAll(Collection<?> c) { throw uoe(); }
+        @Override public boolean removeIf(Predicate<? super E> filter) { throw uoe(); }
+        @Override public void    replaceAll(UnaryOperator<E> operator) { throw uoe(); }
+        @Override public boolean retainAll(Collection<?> c) { throw uoe(); }
+        @Override public void    sort(Comparator<? super E> c) { throw uoe(); }
+    }
+
+    static final class List0<E> extends AbstractImmutableList<E> {
         List0() { }
 
         @Override
@@ -86,7 +106,7 @@
         }
     }
 
-    static final class List1<E> extends AbstractList<E> implements RandomAccess, Serializable {
+    static final class List1<E> extends AbstractImmutableList<E> {
         private final E e0;
 
         List1(E e0) {
@@ -114,7 +134,7 @@
         }
     }
 
-    static final class List2<E> extends AbstractList<E> implements RandomAccess, Serializable {
+    static final class List2<E> extends AbstractImmutableList<E> {
         private final E e0;
         private final E e1;
 
@@ -147,7 +167,7 @@
         }
     }
 
-    static final class ListN<E> extends AbstractList<E> implements RandomAccess, Serializable {
+    static final class ListN<E> extends AbstractImmutableList<E> {
         private final E[] elements;
 
         @SafeVarargs
@@ -183,7 +203,17 @@
 
     // ---------- Set Implementations ----------
 
-    static final class Set0<E> extends AbstractSet<E> implements Serializable {
+    abstract static class AbstractImmutableSet<E> extends AbstractSet<E> implements Serializable {
+        @Override public boolean add(E e) { throw uoe(); }
+        @Override public boolean addAll(Collection<? extends E> c) { throw uoe(); }
+        @Override public void    clear() { throw uoe(); }
+        @Override public boolean remove(Object o) { throw uoe(); }
+        @Override public boolean removeAll(Collection<?> c) { throw uoe(); }
+        @Override public boolean removeIf(Predicate<? super E> filter) { throw uoe(); }
+        @Override public boolean retainAll(Collection<?> c) { throw uoe(); }
+    }
+
+    static final class Set0<E> extends AbstractImmutableSet<E> {
         Set0() { }
 
         @Override
@@ -210,7 +240,7 @@
         }
     }
 
-    static final class Set1<E> extends AbstractSet<E> implements Serializable {
+    static final class Set1<E> extends AbstractImmutableSet<E> {
         private final E e0;
 
         Set1(E e0) {
@@ -241,7 +271,7 @@
         }
     }
 
-    static final class Set2<E> extends AbstractSet<E> implements Serializable {
+    static final class Set2<E> extends AbstractImmutableSet<E> {
         private final E e0;
         private final E e1;
 
@@ -312,7 +342,7 @@
      * least one null is always present.
      * @param <E> the element type
      */
-    static final class SetN<E> extends AbstractSet<E> implements Serializable {
+    static final class SetN<E> extends AbstractImmutableSet<E> {
         private final E[] elements;
         private final int size;
 
@@ -403,7 +433,23 @@
 
     // ---------- Map Implementations ----------
 
-    static final class Map0<K,V> extends AbstractMap<K,V> implements Serializable {
+    abstract static class AbstractImmutableMap<K,V> extends AbstractMap<K,V> implements Serializable {
+        @Override public void clear() { throw uoe(); }
+        @Override public V compute(K key, BiFunction<? super K,? super V,? extends V> rf) { throw uoe(); }
+        @Override public V computeIfAbsent(K key, Function<? super K,? extends V> mf) { throw uoe(); }
+        @Override public V computeIfPresent(K key, BiFunction<? super K,? super V,? extends V> rf) { throw uoe(); }
+        @Override public V merge(K key, V value, BiFunction<? super V,? super V,? extends V> rf) { throw uoe(); }
+        @Override public V put(K key, V value) { throw uoe(); }
+        @Override public void putAll(Map<? extends K,? extends V> m) { throw uoe(); }
+        @Override public V putIfAbsent(K key, V value) { throw uoe(); }
+        @Override public V remove(Object key) { throw uoe(); }
+        @Override public boolean remove(Object key, Object value) { throw uoe(); }
+        @Override public V replace(K key, V value) { throw uoe(); }
+        @Override public boolean replace(K key, V oldValue, V newValue) { throw uoe(); }
+        @Override public void replaceAll(BiFunction<? super K,? super V,? extends V> f) { throw uoe(); }
+    }
+
+    static final class Map0<K,V> extends AbstractImmutableMap<K,V> {
         Map0() { }
 
         @Override
@@ -430,7 +476,7 @@
         }
     }
 
-    static final class Map1<K,V> extends AbstractMap<K,V> implements Serializable {
+    static final class Map1<K,V> extends AbstractImmutableMap<K,V> {
         private final K k0;
         private final V v0;
 
@@ -472,7 +518,7 @@
      * @param <K> the key type
      * @param <V> the value type
      */
-    static final class MapN<K,V> extends AbstractMap<K,V> implements Serializable {
+    static final class MapN<K,V> extends AbstractImmutableMap<K,V> {
         private final Object[] table; // pairs of key, value
         private final int size; // number of pairs
 
--- a/jdk/src/java.base/share/classes/java/util/List.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/List.java	Wed Sep 14 11:22:38 2016 -0700
@@ -94,7 +94,8 @@
  *
  * <ul>
  * <li>They are <em>structurally immutable</em>. Elements cannot be added, removed,
- * or replaced. Attempts to do so result in {@code UnsupportedOperationException}.
+ * or replaced. Calling any mutator method will always cause
+ * {@code UnsupportedOperationException} to be thrown.
  * However, if the contained elements are themselves mutable,
  * this may cause the List's contents to appear to change.
  * <li>They disallow {@code null} elements. Attempts to create them with
--- a/jdk/src/java.base/share/classes/java/util/Map.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/Map.java	Wed Sep 14 11:22:38 2016 -0700
@@ -119,7 +119,8 @@
  *
  * <ul>
  * <li>They are <em>structurally immutable</em>. Keys and values cannot be added,
- * removed, or updated. Attempts to do so result in {@code UnsupportedOperationException}.
+ * removed, or updated. Calling any mutator method will always cause
+ * {@code UnsupportedOperationException} to be thrown.
  * However, if the contained keys or values are themselves mutable, this may cause the
  * Map to behave inconsistently or its contents to appear to change.
  * <li>They disallow {@code null} keys and values. Attempts to create them with
--- a/jdk/src/java.base/share/classes/java/util/PriorityQueue.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/PriorityQueue.java	Wed Sep 14 11:22:38 2016 -0700
@@ -749,11 +749,11 @@
     /**
      * Saves this queue to a stream (that is, serializes it).
      *
+     * @param s the stream
+     * @throws java.io.IOException if an I/O error occurs
      * @serialData The length of the array backing the instance is
      *             emitted (int), followed by all of its elements
      *             (each an {@code Object}) in the proper order.
-     * @param s the stream
-     * @throws java.io.IOException if an I/O error occurs
      */
     private void writeObject(java.io.ObjectOutputStream s)
         throws java.io.IOException {
--- a/jdk/src/java.base/share/classes/java/util/Set.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/Set.java	Wed Sep 14 11:22:38 2016 -0700
@@ -70,7 +70,8 @@
  *
  * <ul>
  * <li>They are <em>structurally immutable</em>. Elements cannot be added or
- * removed. Attempts to do so result in {@code UnsupportedOperationException}.
+ * removed. Calling any mutator method will always cause
+ * {@code UnsupportedOperationException} to be thrown.
  * However, if the contained elements are themselves mutable, this may cause the
  * Set to behave inconsistently or its contents to appear to change.
  * <li>They disallow {@code null} elements. Attempts to create them with
--- a/jdk/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/CompletableFuture.java	Wed Sep 14 11:22:38 2016 -0700
@@ -136,9 +136,9 @@
  * }}</pre>
  *
  * @author Doug Lea
- * @since 1.8
  * @param <T> The result type returned by this future's {@code join}
  * and {@code get} methods
+ * @since 1.8
  */
 public class CompletableFuture<T> implements Future<T>, CompletionStage<T> {
 
--- a/jdk/src/java.base/share/classes/java/util/concurrent/CountedCompleter.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/CountedCompleter.java	Wed Sep 14 11:22:38 2016 -0700
@@ -120,102 +120,114 @@
  * to complete for some elements than others, either because of
  * intrinsic variation (for example I/O) or auxiliary effects such as
  * garbage collection.  Because CountedCompleters provide their own
- * continuations, other threads need not block waiting to perform
- * them.
+ * continuations, other tasks need not block waiting to perform them.
  *
- * <p>For example, here is an initial version of a class that uses
- * divide-by-two recursive decomposition to divide work into single
- * pieces (leaf tasks). Even when work is split into individual calls,
- * tree-based techniques are usually preferable to directly forking
- * leaf tasks, because they reduce inter-thread communication and
- * improve load balancing. In the recursive case, the second of each
- * pair of subtasks to finish triggers completion of its parent
+ * <p>For example, here is an initial version of a utility method that
+ * uses divide-by-two recursive decomposition to divide work into
+ * single pieces (leaf tasks). Even when work is split into individual
+ * calls, tree-based techniques are usually preferable to directly
+ * forking leaf tasks, because they reduce inter-thread communication
+ * and improve load balancing. In the recursive case, the second of
+ * each pair of subtasks to finish triggers completion of their parent
  * (because no result combination is performed, the default no-op
  * implementation of method {@code onCompletion} is not overridden).
- * A static utility method sets up the base task and invokes it
- * (here, implicitly using the {@link ForkJoinPool#commonPool()}).
+ * The utility method sets up the root task and invokes it (here,
+ * implicitly using the {@link ForkJoinPool#commonPool()}).  It is
+ * straightforward and reliable (but not optimal) to always set the
+ * pending count to the number of child tasks and call {@code
+ * tryComplete()} immediately before returning.
  *
  * <pre> {@code
- * class MyOperation<E> { void apply(E e) { ... }  }
- *
- * class ForEach<E> extends CountedCompleter<Void> {
+ * public static <E> void forEach(E[] array, Consumer<E> action) {
+ *   class Task extends CountedCompleter<Void> {
+ *     final int lo, hi;
+ *     Task(Task parent, int lo, int hi) {
+ *       super(parent); this.lo = lo; this.hi = hi;
+ *     }
  *
- *   public static <E> void forEach(E[] array, MyOperation<E> op) {
- *     new ForEach<E>(null, array, op, 0, array.length).invoke();
- *   }
- *
- *   final E[] array; final MyOperation<E> op; final int lo, hi;
- *   ForEach(CountedCompleter<?> p, E[] array, MyOperation<E> op, int lo, int hi) {
- *     super(p);
- *     this.array = array; this.op = op; this.lo = lo; this.hi = hi;
+ *     public void compute() {
+ *       if (hi - lo >= 2) {
+ *         int mid = (lo + hi) >>> 1;
+ *         // must set pending count before fork
+ *         setPendingCount(2);
+ *         new Task(this, mid, hi).fork(); // right child
+ *         new Task(this, lo, mid).fork(); // left child
+ *       }
+ *       else if (hi > lo)
+ *         action.accept(array[lo]);
+ *       tryComplete();
+ *     }
  *   }
- *
- *   public void compute() { // version 1
- *     if (hi - lo >= 2) {
- *       int mid = (lo + hi) >>> 1;
- *       setPendingCount(2); // must set pending count before fork
- *       new ForEach(this, array, op, mid, hi).fork(); // right child
- *       new ForEach(this, array, op, lo, mid).fork(); // left child
- *     }
- *     else if (hi > lo)
- *       op.apply(array[lo]);
- *     tryComplete();
- *   }
+ *   new Task(null, 0, array.length).invoke();
  * }}</pre>
  *
  * This design can be improved by noticing that in the recursive case,
  * the task has nothing to do after forking its right task, so can
  * directly invoke its left task before returning. (This is an analog
- * of tail recursion removal.)  Also, because the task returns upon
- * executing its left task (rather than falling through to invoke
- * {@code tryComplete}) the pending count is set to one:
+ * of tail recursion removal.)  Also, when the last action in a task
+ * is to fork or invoke a subtask (a "tail call"), the call to {@code
+ * tryComplete()} can be optimized away, at the cost of making the
+ * pending count look "off by one".
  *
  * <pre> {@code
- * class ForEach<E> ... {
- *   ...
- *   public void compute() { // version 2
- *     if (hi - lo >= 2) {
- *       int mid = (lo + hi) >>> 1;
- *       setPendingCount(1); // only one pending
- *       new ForEach(this, array, op, mid, hi).fork(); // right child
- *       new ForEach(this, array, op, lo, mid).compute(); // direct invoke
- *     }
- *     else {
- *       if (hi > lo)
- *         op.apply(array[lo]);
- *       tryComplete();
- *     }
- *   }
- * }}</pre>
+ *     public void compute() {
+ *       if (hi - lo >= 2) {
+ *         int mid = (lo + hi) >>> 1;
+ *         setPendingCount(1); // looks off by one, but correct!
+ *         new Task(this, mid, hi).fork(); // right child
+ *         new Task(this, lo, mid).compute(); // direct invoke
+ *       } else {
+ *         if (hi > lo)
+ *           action.accept(array[lo]);
+ *         tryComplete();
+ *       }
+ *     }}</pre>
  *
  * As a further optimization, notice that the left task need not even exist.
- * Instead of creating a new one, we can iterate using the original task,
+ * Instead of creating a new one, we can continue using the original task,
  * and add a pending count for each fork.  Additionally, because no task
  * in this tree implements an {@link #onCompletion(CountedCompleter)} method,
- * {@code tryComplete()} can be replaced with {@link #propagateCompletion}.
+ * {@code tryComplete} can be replaced with {@link #propagateCompletion}.
+ *
+ * <pre> {@code
+ *     public void compute() {
+ *       int n = hi - lo;
+ *       for (; n >= 2; n /= 2) {
+ *         addToPendingCount(1);
+ *         new Task(this, lo + n/2, lo + n).fork();
+ *       }
+ *       if (n > 0)
+ *         action.accept(array[lo]);
+ *       propagateCompletion();
+ *     }}</pre>
+ *
+ * When pending counts can be precomputed, they can be established in
+ * the constructor:
  *
  * <pre> {@code
- * class ForEach<E> ... {
- *   ...
- *   public void compute() { // version 3
- *     int l = lo, h = hi;
- *     while (h - l >= 2) {
- *       int mid = (l + h) >>> 1;
- *       addToPendingCount(1);
- *       new ForEach(this, array, op, mid, h).fork(); // right child
- *       h = mid;
+ * public static <E> void forEach(E[] array, Consumer<E> action) {
+ *   class Task extends CountedCompleter<Void> {
+ *     final int lo, hi;
+ *     Task(Task parent, int lo, int hi) {
+ *       super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo));
+ *       this.lo = lo; this.hi = hi;
  *     }
- *     if (h > l)
- *       op.apply(array[l]);
- *     propagateCompletion();
+ *
+ *     public void compute() {
+ *       for (int n = hi - lo; n >= 2; n /= 2)
+ *         new Task(this, lo + n/2, lo + n).fork();
+ *       action.accept(array[lo]);
+ *       propagateCompletion();
+ *     }
  *   }
+ *   if (array.length > 0)
+ *     new Task(null, 0, array.length).invoke();
  * }}</pre>
  *
- * Additional optimizations of such classes might entail precomputing
- * pending counts so that they can be established in constructors,
- * specializing classes for leaf steps, subdividing by say, four,
- * instead of two per iteration, and using an adaptive threshold
- * instead of always subdividing down to single elements.
+ * Additional optimizations of such classes might entail specializing
+ * classes for leaf steps, subdividing by say, four, instead of two
+ * per iteration, and using an adaptive threshold instead of always
+ * subdividing down to single elements.
  *
  * <p><b>Searching.</b> A tree of CountedCompleters can search for a
  * value or property in different parts of a data structure, and
--- a/jdk/src/java.base/share/classes/java/util/concurrent/CyclicBarrier.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/CyclicBarrier.java	Wed Sep 14 11:22:38 2016 -0700
@@ -132,10 +132,10 @@
  * <i>happen-before</i> actions following a successful return from the
  * corresponding {@code await()} in other threads.
  *
- * @since 1.5
  * @see CountDownLatch
  *
  * @author Doug Lea
+ * @since 1.5
  */
 public class CyclicBarrier {
     /**
--- a/jdk/src/java.base/share/classes/java/util/concurrent/Flow.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/Flow.java	Wed Sep 14 11:22:38 2016 -0700
@@ -68,7 +68,7 @@
  *   private boolean subscribed; // true after first subscribe
  *   public synchronized void subscribe(Subscriber<? super Boolean> subscriber) {
  *     if (subscribed)
- *        subscriber.onError(new IllegalStateException()); // only one allowed
+ *       subscriber.onError(new IllegalStateException()); // only one allowed
  *     else {
  *       subscribed = true;
  *       subscriber.onSubscribe(new OneShotSubscription(subscriber, executor));
--- a/jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinPool.java	Wed Sep 14 11:22:38 2016 -0700
@@ -130,7 +130,7 @@
  * </table>
  *
  * <p>The common pool is by default constructed with default
- * parameters, but these may be controlled by setting three
+ * parameters, but these may be controlled by setting the following
  * {@linkplain System#getProperty system properties}:
  * <ul>
  * <li>{@code java.util.concurrent.ForkJoinPool.common.parallelism}
@@ -3241,7 +3241,7 @@
          * An ACC to restrict permissions for the factory itself.
          * The constructed workers have no permissions set.
          */
-        private static final AccessControlContext innocuousAcc;
+        private static final AccessControlContext INNOCUOUS_ACC;
         static {
             Permissions innocuousPerms = new Permissions();
             innocuousPerms.add(modifyThreadPermission);
@@ -3249,7 +3249,7 @@
                                    "enableContextClassLoaderOverride"));
             innocuousPerms.add(new RuntimePermission(
                                    "modifyThreadGroup"));
-            innocuousAcc = new AccessControlContext(new ProtectionDomain[] {
+            INNOCUOUS_ACC = new AccessControlContext(new ProtectionDomain[] {
                     new ProtectionDomain(null, innocuousPerms)
                 });
         }
@@ -3260,7 +3260,7 @@
                     public ForkJoinWorkerThread run() {
                         return new ForkJoinWorkerThread.
                             InnocuousForkJoinWorkerThread(pool);
-                    }}, innocuousAcc);
+                    }}, INNOCUOUS_ACC);
         }
     }
 
--- a/jdk/src/java.base/share/classes/java/util/concurrent/Semaphore.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/Semaphore.java	Wed Sep 14 11:22:38 2016 -0700
@@ -72,8 +72,8 @@
  *   protected synchronized Object getNextAvailableItem() {
  *     for (int i = 0; i < MAX_AVAILABLE; ++i) {
  *       if (!used[i]) {
- *          used[i] = true;
- *          return items[i];
+ *         used[i] = true;
+ *         return items[i];
  *       }
  *     }
  *     return null; // not reached
@@ -82,11 +82,11 @@
  *   protected synchronized boolean markAsUnused(Object item) {
  *     for (int i = 0; i < MAX_AVAILABLE; ++i) {
  *       if (item == items[i]) {
- *          if (used[i]) {
- *            used[i] = false;
- *            return true;
- *          } else
- *            return false;
+ *         if (used[i]) {
+ *           used[i] = false;
+ *           return true;
+ *         } else
+ *           return false;
  *       }
  *     }
  *     return false;
--- a/jdk/src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/SubmissionPublisher.java	Wed Sep 14 11:22:38 2016 -0700
@@ -554,8 +554,9 @@
                 while (r != null) {
                     BufferedSubscription<T> nextRetry = r.nextRetry;
                     r.nextRetry = null;
-                    int stat = (nanos > 0L) ? r.timedOffer(item, nanos) :
-                        r.offer(item);
+                    int stat = (nanos > 0L)
+                        ? r.timedOffer(item, nanos)
+                        : r.offer(item);
                     if (stat == 0 && onDrop != null &&
                         onDrop.test(r.subscriber, item))
                         stat = r.offer(item);
--- a/jdk/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/ThreadPoolExecutor.java	Wed Sep 14 11:22:38 2016 -0700
@@ -617,6 +617,9 @@
         /** Per-thread task counter */
         volatile long completedTasks;
 
+        // TODO: switch to AbstractQueuedLongSynchronizer and move
+        // completedTasks into the lock word.
+
         /**
          * Creates with given first task and thread from ThreadFactory.
          * @param firstTask the first task (null if none)
--- a/jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/atomic/AtomicInteger.java	Wed Sep 14 11:22:38 2016 -0700
@@ -193,7 +193,7 @@
 
     /**
      * Atomically increments the current value,
-     * with memory effects as specified by {@link VarHandle#addAndGet}.
+     * with memory effects as specified by {@link VarHandle#getAndAdd}.
      *
      * <p>Equivalent to {@code addAndGet(1)}.
      *
@@ -205,7 +205,7 @@
 
     /**
      * Atomically decrements the current value,
-     * with memory effects as specified by {@link VarHandle#addAndGet}.
+     * with memory effects as specified by {@link VarHandle#getAndAdd}.
      *
      * <p>Equivalent to {@code addAndGet(-1)}.
      *
--- a/jdk/src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/concurrent/locks/StampedLock.java	Wed Sep 14 11:22:38 2016 -0700
@@ -154,13 +154,13 @@
  *     long stamp = sl.tryOptimisticRead();
  *     double currentX = x, currentY = y;
  *     if (!sl.validate(stamp)) {
- *        stamp = sl.readLock();
- *        try {
- *          currentX = x;
- *          currentY = y;
- *        } finally {
- *           sl.unlockRead(stamp);
- *        }
+ *       stamp = sl.readLock();
+ *       try {
+ *         currentX = x;
+ *         currentY = y;
+ *       } finally {
+ *         sl.unlockRead(stamp);
+ *       }
  *     }
  *     return Math.sqrt(currentX * currentX + currentY * currentY);
  *   }
--- a/jdk/src/java.base/share/classes/java/util/jar/JarFile.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/jar/JarFile.java	Wed Sep 14 11:22:38 2016 -0700
@@ -836,18 +836,25 @@
     private static final byte[] CLASSPATH_CHARS =
             {'C','L','A','S','S','-','P','A','T','H', ':', ' '};
 
-    // The bad character shift for "class-path:"
+    // The bad character shift for "class-path: "
     private static final byte[] CLASSPATH_LASTOCC;
 
+    // The good suffix shift for "class-path: "
+    private static final byte[] CLASSPATH_OPTOSFT;
+
     private static final byte[] MULTIRELEASE_CHARS =
             {'M','U','L','T','I','-','R','E','L','E', 'A', 'S', 'E', ':',
                     ' ', 'T', 'R', 'U', 'E'};
 
-    // The bad character shift for "multi-release: "
+    // The bad character shift for "multi-release: true"
     private static final byte[] MULTIRELEASE_LASTOCC;
 
+    // The good suffix shift for "multi-release: true"
+    private static final byte[] MULTIRELEASE_OPTOSFT;
+
     static {
         CLASSPATH_LASTOCC = new byte[64];
+        CLASSPATH_OPTOSFT = new byte[12];
         CLASSPATH_LASTOCC[(int)'C' - 32] = 1;
         CLASSPATH_LASTOCC[(int)'L' - 32] = 2;
         CLASSPATH_LASTOCC[(int)'S' - 32] = 5;
@@ -858,8 +865,13 @@
         CLASSPATH_LASTOCC[(int)'H' - 32] = 10;
         CLASSPATH_LASTOCC[(int)':' - 32] = 11;
         CLASSPATH_LASTOCC[(int)' ' - 32] = 12;
+        for (int i = 0; i < 11; i++) {
+            CLASSPATH_OPTOSFT[i] = 12;
+        }
+        CLASSPATH_OPTOSFT[11] = 1;
 
         MULTIRELEASE_LASTOCC = new byte[64];
+        MULTIRELEASE_OPTOSFT = new byte[19];
         MULTIRELEASE_LASTOCC[(int)'M' - 32] = 1;
         MULTIRELEASE_LASTOCC[(int)'I' - 32] = 5;
         MULTIRELEASE_LASTOCC[(int)'-' - 32] = 6;
@@ -872,6 +884,11 @@
         MULTIRELEASE_LASTOCC[(int)'R' - 32] = 17;
         MULTIRELEASE_LASTOCC[(int)'U' - 32] = 18;
         MULTIRELEASE_LASTOCC[(int)'E' - 32] = 19;
+        for (int i = 0; i < 17; i++) {
+            MULTIRELEASE_OPTOSFT[i] = 19;
+        }
+        MULTIRELEASE_OPTOSFT[17] = 6;
+        MULTIRELEASE_OPTOSFT[18] = 1;
     }
 
     private JarEntry getManEntry() {
@@ -913,7 +930,7 @@
      * Since there are no repeated substring in our search strings,
      * the good suffix shifts can be replaced with a comparison.
      */
-    private int match(byte[] src, byte[] b, byte[] lastOcc) {
+    private int match(byte[] src, byte[] b, byte[] lastOcc, byte[] optoSft) {
         int len = src.length;
         int last = b.length - len;
         int i = 0;
@@ -926,9 +943,8 @@
 
                     if (c != src[j]) {
                         // no match
-                        int goodShift = (j < len - 1) ? len : 1;
                         int badShift = lastOcc[c - 32];
-                        i += Math.max(j + 1 - badShift, goodShift);
+                        i += Math.max(j + 1 - badShift, optoSft[j]);
                         continue next;
                     }
                 } else {
@@ -958,10 +974,11 @@
             if (manEntry != null) {
                 byte[] b = getBytes(manEntry);
                 hasClassPathAttribute = match(CLASSPATH_CHARS, b,
-                        CLASSPATH_LASTOCC) != -1;
+                        CLASSPATH_LASTOCC, CLASSPATH_OPTOSFT) != -1;
                 // is this a multi-release jar file
                 if (MULTI_RELEASE_ENABLED) {
-                    int i = match(MULTIRELEASE_CHARS, b, MULTIRELEASE_LASTOCC);
+                    int i = match(MULTIRELEASE_CHARS, b, MULTIRELEASE_LASTOCC,
+                            MULTIRELEASE_OPTOSFT);
                     if (i != -1) {
                         i += MULTIRELEASE_CHARS.length;
                         if (i < b.length) {
--- a/jdk/src/java.base/share/classes/java/util/stream/DoubleStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/stream/DoubleStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -567,19 +567,23 @@
      * <p>This is a <a href="package-summary.html#StreamOps">terminal
      * operation</a>.
      *
-     * @param <R> type of the result
-     * @param supplier a function that creates a new result container. For a
-     *                 parallel execution, this function may be called
+     * @param <R> the type of the mutable result container
+     * @param supplier a function that creates a new mutable result container.
+     *                 For a parallel execution, this function may be called
      *                 multiple times and must return a fresh value each time.
      * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for incorporating an additional element into a result
+     *                    function that must fold an element into a result
+     *                    container.
      * @param combiner an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for combining two values, which must be
-     *                    compatible with the accumulator function
+     *                    function that accepts two partial result containers
+     *                    and merges them, which must be compatible with the
+     *                    accumulator function.  The combiner function must fold
+     *                    the elements from the second result container into the
+     *                    first result container.
      * @return the result of the reduction
      * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
      */
@@ -947,6 +951,12 @@
      * position {@code n}, will be the result of applying the function {@code f}
      *  to the element at position {@code n - 1}.
      *
+     * <p>The action of applying {@code f} for one element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying {@code f} for subsequent elements.  For any given
+     * element the action may be performed in whatever thread the library
+     * chooses.
+     *
      * @param seed the initial element
      * @param f a function to be applied to the previous element to produce
      *          a new element
@@ -978,37 +988,44 @@
 
     /**
      * Returns a sequential ordered {@code DoubleStream} produced by iterative
-     * application of a function to an initial element, conditioned on
-     * satisfying the supplied predicate.  The stream terminates as soon as
-     * the predicate returns false.
+     * application of the given {@code next} function to an initial element,
+     * conditioned on satisfying the given {@code hasNext} predicate.  The
+     * stream terminates as soon as the {@code hasNext} predicate returns false.
      *
-     * <p>
-     * {@code DoubleStream.iterate} should produce the same sequence of
-     * elements as produced by the corresponding for-loop:
+     * <p>{@code DoubleStream.iterate} should produce the same sequence of elements as
+     * produced by the corresponding for-loop:
      * <pre>{@code
-     *     for (double index=seed; predicate.test(index); index = f.applyAsDouble(index)) {
+     *     for (double index=seed; hasNext.test(index); index = next.applyAsDouble(index)) {
      *         ...
      *     }
      * }</pre>
      *
-     * <p>
-     * The resulting sequence may be empty if the predicate does not hold on
-     * the seed value.  Otherwise the first element will be the supplied seed
-     * value, the next element (if present) will be the result of applying the
-     * function f to the seed value, and so on iteratively until the predicate
-     * indicates that the stream should terminate.
+     * <p>The resulting sequence may be empty if the {@code hasNext} predicate
+     * does not hold on the seed value.  Otherwise the first element will be the
+     * supplied {@code seed} value, the next element (if present) will be the
+     * result of applying the {@code next} function to the {@code seed} value,
+     * and so on iteratively until the {@code hasNext} predicate indicates that
+     * the stream should terminate.
+     *
+     * <p>The action of applying the {@code hasNext} predicate to an element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying the {@code next} function to that element.  The
+     * action of applying the {@code next} function for one element
+     * <i>happens-before</i> the action of applying the {@code hasNext}
+     * predicate for subsequent elements.  For any given element an action may
+     * be performed in whatever thread the library chooses.
      *
      * @param seed the initial element
-     * @param predicate a predicate to apply to elements to determine when the
-     *          stream must terminate.
-     * @param f a function to be applied to the previous element to produce
-     *          a new element
+     * @param hasNext a predicate to apply to elements to determine when the
+     *                stream must terminate.
+     * @param next a function to be applied to the previous element to produce
+     *             a new element
      * @return a new sequential {@code DoubleStream}
      * @since 9
      */
-    public static DoubleStream iterate(double seed, DoublePredicate predicate, DoubleUnaryOperator f) {
-        Objects.requireNonNull(f);
-        Objects.requireNonNull(predicate);
+    public static DoubleStream iterate(double seed, DoublePredicate hasNext, DoubleUnaryOperator next) {
+        Objects.requireNonNull(next);
+        Objects.requireNonNull(hasNext);
         Spliterator.OfDouble spliterator = new Spliterators.AbstractDoubleSpliterator(Long.MAX_VALUE,
                Spliterator.ORDERED | Spliterator.IMMUTABLE | Spliterator.NONNULL) {
             double prev;
@@ -1021,12 +1038,12 @@
                     return false;
                 double t;
                 if (started)
-                    t = f.applyAsDouble(prev);
+                    t = next.applyAsDouble(prev);
                 else {
                     t = seed;
                     started = true;
                 }
-                if (!predicate.test(t)) {
+                if (!hasNext.test(t)) {
                     finished = true;
                     return false;
                 }
@@ -1040,10 +1057,10 @@
                 if (finished)
                     return;
                 finished = true;
-                double t = started ? f.applyAsDouble(prev) : seed;
-                while (predicate.test(t)) {
+                double t = started ? next.applyAsDouble(prev) : seed;
+                while (hasNext.test(t)) {
                     action.accept(t);
-                    t = f.applyAsDouble(t);
+                    t = next.applyAsDouble(t);
                 }
             }
         };
--- a/jdk/src/java.base/share/classes/java/util/stream/IntStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/stream/IntStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -562,19 +562,23 @@
      * <p>This is a <a href="package-summary.html#StreamOps">terminal
      * operation</a>.
      *
-     * @param <R> type of the result
-     * @param supplier a function that creates a new result container. For a
-     *                 parallel execution, this function may be called
+     * @param <R> the type of the mutable result container
+     * @param supplier a function that creates a new mutable result container.
+     *                 For a parallel execution, this function may be called
      *                 multiple times and must return a fresh value each time.
      * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for incorporating an additional element into a result
+     *                    function that must fold an element into a result
+     *                    container.
      * @param combiner an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for combining two values, which must be
-     *                    compatible with the accumulator function
+     *                    function that accepts two partial result containers
+     *                    and merges them, which must be compatible with the
+     *                    accumulator function.  The combiner function must fold
+     *                    the elements from the second result container into the
+     *                    first result container.
      * @return the result of the reduction
      * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
      */
@@ -887,6 +891,12 @@
      * {@code n}, will be the result of applying the function {@code f} to the
      * element at position {@code n - 1}.
      *
+     * <p>The action of applying {@code f} for one element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying {@code f} for subsequent elements.  For any given
+     * element the action may be performed in whatever thread the library
+     * chooses.
+     *
      * @param seed the initial element
      * @param f a function to be applied to the previous element to produce
      *          a new element
@@ -918,37 +928,44 @@
 
     /**
      * Returns a sequential ordered {@code IntStream} produced by iterative
-     * application of a function to an initial element, conditioned on
-     * satisfying the supplied predicate.  The stream terminates as soon as
-     * the predicate returns false.
+     * application of the given {@code next} function to an initial element,
+     * conditioned on satisfying the given {@code hasNext} predicate.  The
+     * stream terminates as soon as the {@code hasNext} predicate returns false.
      *
-     * <p>
-     * {@code IntStream.iterate} should produce the same sequence of elements
-     * as produced by the corresponding for-loop:
+     * <p>{@code IntStream.iterate} should produce the same sequence of elements as
+     * produced by the corresponding for-loop:
      * <pre>{@code
-     *     for (int index=seed; predicate.test(index); index = f.applyAsInt(index)) {
+     *     for (int index=seed; hasNext.test(index); index = next.applyAsInt(index)) {
      *         ...
      *     }
      * }</pre>
      *
-     * <p>
-     * The resulting sequence may be empty if the predicate does not hold on
-     * the seed value.  Otherwise the first element will be the supplied seed
-     * value, the next element (if present) will be the result of applying the
-     * function f to the seed value, and so on iteratively until the predicate
-     * indicates that the stream should terminate.
+     * <p>The resulting sequence may be empty if the {@code hasNext} predicate
+     * does not hold on the seed value.  Otherwise the first element will be the
+     * supplied {@code seed} value, the next element (if present) will be the
+     * result of applying the {@code next} function to the {@code seed} value,
+     * and so on iteratively until the {@code hasNext} predicate indicates that
+     * the stream should terminate.
+     *
+     * <p>The action of applying the {@code hasNext} predicate to an element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying the {@code next} function to that element.  The
+     * action of applying the {@code next} function for one element
+     * <i>happens-before</i> the action of applying the {@code hasNext}
+     * predicate for subsequent elements.  For any given element an action may
+     * be performed in whatever thread the library chooses.
      *
      * @param seed the initial element
-     * @param predicate a predicate to apply to elements to determine when the
-     *          stream must terminate.
-     * @param f a function to be applied to the previous element to produce
-     *          a new element
+     * @param hasNext a predicate to apply to elements to determine when the
+     *                stream must terminate.
+     * @param next a function to be applied to the previous element to produce
+     *             a new element
      * @return a new sequential {@code IntStream}
      * @since 9
      */
-    public static IntStream iterate(int seed, IntPredicate predicate, IntUnaryOperator f) {
-        Objects.requireNonNull(f);
-        Objects.requireNonNull(predicate);
+    public static IntStream iterate(int seed, IntPredicate hasNext, IntUnaryOperator next) {
+        Objects.requireNonNull(next);
+        Objects.requireNonNull(hasNext);
         Spliterator.OfInt spliterator = new Spliterators.AbstractIntSpliterator(Long.MAX_VALUE,
                Spliterator.ORDERED | Spliterator.IMMUTABLE | Spliterator.NONNULL) {
             int prev;
@@ -961,12 +978,12 @@
                     return false;
                 int t;
                 if (started)
-                    t = f.applyAsInt(prev);
+                    t = next.applyAsInt(prev);
                 else {
                     t = seed;
                     started = true;
                 }
-                if (!predicate.test(t)) {
+                if (!hasNext.test(t)) {
                     finished = true;
                     return false;
                 }
@@ -980,10 +997,10 @@
                 if (finished)
                     return;
                 finished = true;
-                int t = started ? f.applyAsInt(prev) : seed;
-                while (predicate.test(t)) {
+                int t = started ? next.applyAsInt(prev) : seed;
+                while (hasNext.test(t)) {
                     action.accept(t);
-                    t = f.applyAsInt(t);
+                    t = next.applyAsInt(t);
                 }
             }
         };
--- a/jdk/src/java.base/share/classes/java/util/stream/LongStream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/stream/LongStream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -564,19 +564,23 @@
      * <p>This is a <a href="package-summary.html#StreamOps">terminal
      * operation</a>.
      *
-     * @param <R> type of the result
-     * @param supplier a function that creates a new result container. For a
-     *                 parallel execution, this function may be called
+     * @param <R> the type of the mutable result container
+     * @param supplier a function that creates a new mutable result container.
+     *                 For a parallel execution, this function may be called
      *                 multiple times and must return a fresh value each time.
      * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for incorporating an additional element into a result
+     *                    function that must fold an element into a result
+     *                    container.
      * @param combiner an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for combining two values, which must be
-     *                    compatible with the accumulator function
+     *                    function that accepts two partial result containers
+     *                    and merges them, which must be compatible with the
+     *                    accumulator function.  The combiner function must fold
+     *                    the elements from the second result container into the
+     *                    first result container.
      * @return the result of the reduction
      * @see Stream#collect(Supplier, BiConsumer, BiConsumer)
      */
@@ -877,6 +881,12 @@
      * {@code n}, will be the result of applying the function {@code f} to the
      * element at position {@code n - 1}.
      *
+     * <p>The action of applying {@code f} for one element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying {@code f} for subsequent elements.  For any given
+     * element the action may be performed in whatever thread the library
+     * chooses.
+     *
      * @param seed the initial element
      * @param f a function to be applied to the previous element to produce
      *          a new element
@@ -908,37 +918,44 @@
 
     /**
      * Returns a sequential ordered {@code LongStream} produced by iterative
-     * application of a function to an initial element, conditioned on
-     * satisfying the supplied predicate.  The stream terminates as soon as
-     * the predicate returns false.
+     * application of the given {@code next} function to an initial element,
+     * conditioned on satisfying the given {@code hasNext} predicate.  The
+     * stream terminates as soon as the {@code hasNext} predicate returns false.
      *
-     * <p>
-     * {@code LongStream.iterate} should produce the same sequence of elements
-     * as produced by the corresponding for-loop:
+     * <p>{@code LongStream.iterate} should produce the same sequence of elements as
+     * produced by the corresponding for-loop:
      * <pre>{@code
-     *     for (long index=seed; predicate.test(index); index = f.applyAsLong(index)) {
+     *     for (long index=seed; hasNext.test(index); index = next.applyAsLong(index)) {
      *         ...
      *     }
      * }</pre>
      *
-     * <p>
-     * The resulting sequence may be empty if the predicate does not hold on
-     * the seed value.  Otherwise the first element will be the supplied seed
-     * value, the next element (if present) will be the result of applying the
-     * function f to the seed value, and so on iteratively until the predicate
-     * indicates that the stream should terminate.
+     * <p>The resulting sequence may be empty if the {@code hasNext} predicate
+     * does not hold on the seed value.  Otherwise the first element will be the
+     * supplied {@code seed} value, the next element (if present) will be the
+     * result of applying the {@code next} function to the {@code seed} value,
+     * and so on iteratively until the {@code hasNext} predicate indicates that
+     * the stream should terminate.
+     *
+     * <p>The action of applying the {@code hasNext} predicate to an element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying the {@code next} function to that element.  The
+     * action of applying the {@code next} function for one element
+     * <i>happens-before</i> the action of applying the {@code hasNext}
+     * predicate for subsequent elements.  For any given element an action may
+     * be performed in whatever thread the library chooses.
      *
      * @param seed the initial element
-     * @param predicate a predicate to apply to elements to determine when the
-     *          stream must terminate.
-     * @param f a function to be applied to the previous element to produce
-     *          a new element
+     * @param hasNext a predicate to apply to elements to determine when the
+     *                stream must terminate.
+     * @param next a function to be applied to the previous element to produce
+     *             a new element
      * @return a new sequential {@code LongStream}
      * @since 9
      */
-    public static LongStream iterate(long seed, LongPredicate predicate, LongUnaryOperator f) {
-        Objects.requireNonNull(f);
-        Objects.requireNonNull(predicate);
+    public static LongStream iterate(long seed, LongPredicate hasNext, LongUnaryOperator next) {
+        Objects.requireNonNull(next);
+        Objects.requireNonNull(hasNext);
         Spliterator.OfLong spliterator = new Spliterators.AbstractLongSpliterator(Long.MAX_VALUE,
                Spliterator.ORDERED | Spliterator.IMMUTABLE | Spliterator.NONNULL) {
             long prev;
@@ -951,12 +968,12 @@
                     return false;
                 long t;
                 if (started)
-                    t = f.applyAsLong(prev);
+                    t = next.applyAsLong(prev);
                 else {
                     t = seed;
                     started = true;
                 }
-                if (!predicate.test(t)) {
+                if (!hasNext.test(t)) {
                     finished = true;
                     return false;
                 }
@@ -970,10 +987,10 @@
                 if (finished)
                     return;
                 finished = true;
-                long t = started ? f.applyAsLong(prev) : seed;
-                while (predicate.test(t)) {
+                long t = started ? next.applyAsLong(prev) : seed;
+                while (hasNext.test(t)) {
                     action.accept(t);
-                    t = f.applyAsLong(t);
+                    t = next.applyAsLong(t);
                 }
             }
         };
--- a/jdk/src/java.base/share/classes/java/util/stream/Stream.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/java/util/stream/Stream.java	Wed Sep 14 11:22:38 2016 -0700
@@ -882,19 +882,23 @@
      *                                 .toString();
      * }</pre>
      *
-     * @param <R> type of the result
-     * @param supplier a function that creates a new result container. For a
-     *                 parallel execution, this function may be called
+     * @param <R> the type of the mutable result container
+     * @param supplier a function that creates a new mutable result container.
+     *                 For a parallel execution, this function may be called
      *                 multiple times and must return a fresh value each time.
      * @param accumulator an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for incorporating an additional element into a result
+     *                    function that must fold an element into a result
+     *                    container.
      * @param combiner an <a href="package-summary.html#Associativity">associative</a>,
      *                    <a href="package-summary.html#NonInterference">non-interfering</a>,
      *                    <a href="package-summary.html#Statelessness">stateless</a>
-     *                    function for combining two values, which must be
-     *                    compatible with the accumulator function
+     *                    function that accepts two partial result containers
+     *                    and merges them, which must be compatible with the
+     *                    accumulator function.  The combiner function must fold
+     *                    the elements from the second result container into the
+     *                    first result container.
      * @return the result of the reduction
      */
     <R> R collect(Supplier<R> supplier,
@@ -1194,6 +1198,12 @@
      * {@code n}, will be the result of applying the function {@code f} to the
      * element at position {@code n - 1}.
      *
+     * <p>The action of applying {@code f} for one element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying {@code f} for subsequent elements.  For any given
+     * element the action may be performed in whatever thread the library
+     * chooses.
+     *
      * @param <T> the type of stream elements
      * @param seed the initial element
      * @param f a function to be applied to the previous element to produce
@@ -1226,38 +1236,45 @@
 
     /**
      * Returns a sequential ordered {@code Stream} produced by iterative
-     * application of a function to an initial element, conditioned on
-     * satisfying the supplied predicate.  The stream terminates as soon as
-     * the predicate returns false.
+     * application of the given {@code next} function to an initial element,
+     * conditioned on satisfying the given {@code hasNext} predicate.  The
+     * stream terminates as soon as the {@code hasNext} predicate returns false.
      *
-     * <p>
-     * {@code Stream.iterate} should produce the same sequence of elements as
+     * <p>{@code Stream.iterate} should produce the same sequence of elements as
      * produced by the corresponding for-loop:
      * <pre>{@code
-     *     for (T index=seed; predicate.test(index); index = f.apply(index)) {
+     *     for (T index=seed; hasNext.test(index); index = next.apply(index)) {
      *         ...
      *     }
      * }</pre>
      *
-     * <p>
-     * The resulting sequence may be empty if the predicate does not hold on
-     * the seed value.  Otherwise the first element will be the supplied seed
-     * value, the next element (if present) will be the result of applying the
-     * function f to the seed value, and so on iteratively until the predicate
-     * indicates that the stream should terminate.
+     * <p>The resulting sequence may be empty if the {@code hasNext} predicate
+     * does not hold on the seed value.  Otherwise the first element will be the
+     * supplied {@code seed} value, the next element (if present) will be the
+     * result of applying the {@code next} function to the {@code seed} value,
+     * and so on iteratively until the {@code hasNext} predicate indicates that
+     * the stream should terminate.
+     *
+     * <p>The action of applying the {@code hasNext} predicate to an element
+     * <a href="../concurrent/package-summary.html#MemoryVisibility"><i>happens-before</i></a>
+     * the action of applying the {@code next} function to that element.  The
+     * action of applying the {@code next} function for one element
+     * <i>happens-before</i> the action of applying the {@code hasNext}
+     * predicate for subsequent elements.  For any given element an action may
+     * be performed in whatever thread the library chooses.
      *
      * @param <T> the type of stream elements
      * @param seed the initial element
-     * @param predicate a predicate to apply to elements to determine when the
-     *          stream must terminate.
-     * @param f a function to be applied to the previous element to produce
-     *          a new element
+     * @param hasNext a predicate to apply to elements to determine when the
+     *                stream must terminate.
+     * @param next a function to be applied to the previous element to produce
+     *             a new element
      * @return a new sequential {@code Stream}
      * @since 9
      */
-    public static<T> Stream<T> iterate(T seed, Predicate<? super T> predicate, UnaryOperator<T> f) {
-        Objects.requireNonNull(f);
-        Objects.requireNonNull(predicate);
+    public static<T> Stream<T> iterate(T seed, Predicate<? super T> hasNext, UnaryOperator<T> next) {
+        Objects.requireNonNull(next);
+        Objects.requireNonNull(hasNext);
         Spliterator<T> spliterator = new Spliterators.AbstractSpliterator<>(Long.MAX_VALUE,
                Spliterator.ORDERED | Spliterator.IMMUTABLE) {
             T prev;
@@ -1270,12 +1287,12 @@
                     return false;
                 T t;
                 if (started)
-                    t = f.apply(prev);
+                    t = next.apply(prev);
                 else {
                     t = seed;
                     started = true;
                 }
-                if (!predicate.test(t)) {
+                if (!hasNext.test(t)) {
                     prev = null;
                     finished = true;
                     return false;
@@ -1290,11 +1307,11 @@
                 if (finished)
                     return;
                 finished = true;
-                T t = started ? f.apply(prev) : seed;
+                T t = started ? next.apply(prev) : seed;
                 prev = null;
-                while (predicate.test(t)) {
+                while (hasNext.test(t)) {
                     action.accept(t);
-                    t = f.apply(t);
+                    t = next.apply(t);
                 }
             }
         };
--- a/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/SerialVersionUIDAdder.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm/commons/SerialVersionUIDAdder.java	Wed Sep 14 11:22:38 2016 -0700
@@ -80,7 +80,7 @@
  *   ClassWriter cw = new ClassWriter(...);
  *   ClassVisitor sv = new SerialVersionUIDAdder(cw);
  *   ClassVisitor ca = new MyClassAdapter(sv);
- *   new ClassReader(orginalClass).accept(ca, false);
+ *   new ClassReader(originalClass).accept(ca, false);
  * </pre>
  *
  * The SVUID algorithm can be found <a href=
--- a/jdk/src/java.base/share/classes/sun/security/ssl/ClientHandshaker.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/sun/security/ssl/ClientHandshaker.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1185,7 +1185,7 @@
         /*
          * FOURTH, if we sent a Certificate, we need to send a signed
          * CertificateVerify (unless the key in the client's certificate
-         * was a Diffie-Hellman key).).
+         * was a Diffie-Hellman key).
          *
          * This uses a hash of the previous handshake messages ... either
          * a nonfinal one (if the particular implementation supports it)
--- a/jdk/src/java.base/share/classes/sun/text/resources/BreakIteratorRulesProvider.java	Sat Sep 10 12:18:30 2016 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-/*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * This code is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 only, as
- * published by the Free Software Foundation.  Oracle designates this
- * particular file as subject to the "Classpath" exception as provided
- * by Oracle in the LICENSE file that accompanied this code.
- *
- * This code is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
- * version 2 for more details (a copy is included in the LICENSE file that
- * accompanied this code).
- *
- * You should have received a copy of the GNU General Public License version
- * 2 along with this work; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- *
- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- * or visit www.oracle.com if you need additional information or have any
- * questions.
- */
-
-package sun.text.resources;
-
-import java.util.spi.ResourceBundleProvider;
-
-/**
- * An interface for the internal locale data provider for which {@code ResourceBundle}
- * searches.
- */
-public interface BreakIteratorRulesProvider extends ResourceBundleProvider {
-}
--- a/jdk/src/java.base/share/classes/sun/util/locale/provider/BreakDictionary.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/sun/util/locale/provider/BreakDictionary.java	Wed Sep 14 11:22:38 2016 -0700
@@ -149,7 +149,10 @@
         BufferedInputStream in;
         try {
             PrivilegedExceptionAction<BufferedInputStream> pa = () -> {
-                InputStream is = module.getResourceAsStream("sun/text/resources/" + dictionaryName);
+                String pathName = "jdk.localedata".equals(module.getName()) ?
+                     "sun/text/resources/ext/" :
+                     "sun/text/resources/";
+                InputStream is = module.getResourceAsStream(pathName + dictionaryName);
                 if (is == null) {
                     // Try to load the file with "java.base" module instance. Assumption
                     // here is that the fall back data files to be read should reside in
--- a/jdk/src/java.base/share/classes/sun/util/locale/provider/RuleBasedBreakIterator.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/share/classes/sun/util/locale/provider/RuleBasedBreakIterator.java	Wed Sep 14 11:22:38 2016 -0700
@@ -444,7 +444,10 @@
         BufferedInputStream is;
         try {
             PrivilegedExceptionAction<BufferedInputStream> pa = () -> {
-                InputStream in = module.getResourceAsStream("sun/text/resources/" + datafile);
+                String pathName = "jdk.localedata".equals(module.getName()) ?
+                     "sun/text/resources/ext/" :
+                     "sun/text/resources/";
+                InputStream in = module.getResourceAsStream(pathName + datafile);
                 if (in == null) {
                     // Try to load the file with "java.base" module instance. Assumption
                     // here is that the fall back data files to be read should reside in
--- a/jdk/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.base/unix/native/libnio/fs/UnixNativeDispatcher.c	Wed Sep 14 11:22:38 2016 -0700
@@ -52,6 +52,10 @@
 #include <strings.h>
 #endif
 
+#ifdef __linux__
+#include <sys/syscall.h>
+#endif
+
 #if defined(__linux__) || defined(_AIX)
 #include <string.h>
 #endif
@@ -157,14 +161,11 @@
 }
 #endif
 
-#if defined(__linux__) && defined(__x86_64__)
+#if defined(__linux__) && defined(_LP64) && defined(__NR_newfstatat)
 #define FSTATAT64_SYSCALL_AVAILABLE
 static int fstatat64_wrapper(int dfd, const char *path,
                              struct stat64 *statbuf, int flag)
 {
-    #ifndef __NR_newfstatat
-    #define __NR_newfstatat  262
-    #endif
     return syscall(__NR_newfstatat, dfd, path, statbuf, flag);
 }
 #endif
--- a/jdk/src/java.desktop/share/classes/com/sun/media/sound/DLSInfo.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.desktop/share/classes/com/sun/media/sound/DLSInfo.java	Wed Sep 14 11:22:38 2016 -0700
@@ -95,7 +95,7 @@
     public String subject = null;
     /**
      * (ISRC) Name of person or orginization who supplied
-     *        orginal material for the file.
+     *        original material for the file.
      */
     public String source = null;
     /**
--- a/jdk/src/java.instrument/share/classes/java/lang/instrument/package.html	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.instrument/share/classes/java/lang/instrument/package.html	Wed Sep 14 11:22:38 2016 -0700
@@ -105,6 +105,10 @@
 The agent class will be loaded by the system class loader
 (see {@link java.lang.ClassLoader#getSystemClassLoader ClassLoader.getSystemClassLoader}). This is
 the class loader which typically loads the class containing the application <code>main</code> method.
+The system class loader must support a mechanism to add an agent JAR file to the system class path.
+If it is a custom system class loader then it must define the
+<code>appendToClassPathForInstrumentation</code> method as specified in
+{@link Instrumentation#appendToSystemClassLoaderSearch appendToSystemClassLoaderSearch}.
 The <code>premain</code> methods will be run under the same security and classloader 
 rules as the application <code>main</code> method.
 There are no modeling restrictions on what the agent <code>premain</code> method may do.
@@ -140,7 +144,10 @@
 
   <li><p>The system class loader (
       {@link java.lang.ClassLoader#getSystemClassLoader ClassLoader.getSystemClassLoader}) must
-      support a mechanism to add an agent JAR file to the system class path.</li>
+      support a mechanism to add an agent JAR file to the system class path.
+      If it is a custom system class loader then it must define the
+      <code>appendToClassPathForInstrumentation</code> method as specified in
+      {@link Instrumentation#appendToSystemClassLoaderSearch appendToSystemClassLoaderSearch}.</li>
 </ol>  
 
 <P>
--- a/jdk/src/java.instrument/share/native/libinstrument/InvocationAdapter.c	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.instrument/share/native/libinstrument/InvocationAdapter.c	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -190,10 +190,8 @@
             return JNI_ERR;
         }
 
-        /*
-         * Add to the jarfile
-         */
-        appendClassPath(agent, jarfile);
+        /* Save the jarfile name */
+        agent->mJarfile = jarfile;
 
         /*
          * The value of the Premain-Class attribute becomes the agent
@@ -241,7 +239,6 @@
         /*
          * Clean-up
          */
-        free(jarfile);
         if (options != NULL) free(options);
         freeAttributes(attributes);
         free(premainClass);
@@ -459,7 +456,23 @@
 
     /* process the premain calls on the all the JPL agents */
     if ( environment != NULL ) {
-        jthrowable outstandingException = preserveThrowable(jnienv);
+        jthrowable outstandingException = NULL;
+        /*
+         * Add the jarfile to the system class path
+         */
+        JPLISAgent * agent = environment->mAgent;
+        if (appendClassPath(agent, agent->mJarfile)) {
+            fprintf(stderr, "Unable to add %s to system class path - "
+                    "the system class loader does not define the "
+                    "appendToClassPathForInstrumentation method or the method failed\n",
+                    agent->mJarfile);
+            free((void *)agent->mJarfile);
+            abortJVM(jnienv, JPLIS_ERRORMESSAGE_CANNOTSTART);
+        }
+        free((void *)agent->mJarfile);
+        agent->mJarfile = NULL;
+
+        outstandingException = preserveThrowable(jnienv);
         success = processJavaStart( environment->mAgent,
                                     jnienv);
         restoreThrowable(jnienv, outstandingException);
@@ -631,32 +644,19 @@
     jvmtierr = (*jvmtienv)->AddToSystemClassLoaderSearch(jvmtienv, jarfile);
     check_phase_ret_1(jvmtierr);
 
-    if (jvmtierr == JVMTI_ERROR_NONE) {
-        return 0;
-    } else {
-        jvmtiPhase phase;
-        jvmtiError err;
-
-        err = (*jvmtienv)->GetPhase(jvmtienv, &phase);
-        /* can be called from any phase */
-        jplis_assert(err == JVMTI_ERROR_NONE);
-
-        if (phase == JVMTI_PHASE_LIVE) {
-            switch (jvmtierr) {
-                case JVMTI_ERROR_CLASS_LOADER_UNSUPPORTED :
-                    fprintf(stderr, "System class loader does not support adding "
-                        "JAR file to system class path during the live phase!\n");
-                        break;
-                default:
-                    fprintf(stderr, "Unexpected error (%d) returned by "
-                        "AddToSystemClassLoaderSearch\n", jvmtierr);
-                    break;
-            }
-            return -1;
-        }
-        jplis_assert(0);
+    switch (jvmtierr) {
+        case JVMTI_ERROR_NONE :
+            return 0;
+        case JVMTI_ERROR_CLASS_LOADER_UNSUPPORTED :
+            fprintf(stderr, "System class loader does not define "
+                "the appendToClassPathForInstrumentation method\n");
+            break;
+        default:
+            fprintf(stderr, "Unexpected error (%d) returned by "
+                "AddToSystemClassLoaderSearch\n", jvmtierr);
+            break;
     }
-    return -2;
+    return -1;
 }
 
 
--- a/jdk/src/java.instrument/share/native/libinstrument/JPLISAgent.c	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.instrument/share/native/libinstrument/JPLISAgent.c	Wed Sep 14 11:22:38 2016 -0700
@@ -272,6 +272,7 @@
     agent->mNativeMethodPrefixAdded                  = JNI_FALSE;
     agent->mAgentClassName                           = NULL;
     agent->mOptionsString                            = NULL;
+    agent->mJarfile                                  = NULL;
 
     /* make sure we can recover either handle in either direction.
      * the agent has a ref to the jvmti; make it mutual
--- a/jdk/src/java.instrument/share/native/libinstrument/JPLISAgent.h	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/java.instrument/share/native/libinstrument/JPLISAgent.h	Wed Sep 14 11:22:38 2016 -0700
@@ -107,6 +107,7 @@
     jboolean                mNativeMethodPrefixAdded;     /* indicates if can_set_native_method_prefix capability has been added */
     char const *            mAgentClassName;        /* agent class name */
     char const *            mOptionsString;         /* -javaagent options string */
+    const char *            mJarfile;               /* agent jar file name */
 };
 
 /*
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/builder/DefaultImageBuilder.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/builder/DefaultImageBuilder.java	Wed Sep 14 11:22:38 2016 -0700
@@ -189,12 +189,12 @@
             storeFiles(modules, release);
 
             if (Files.getFileStore(root).supportsFileAttributeView(PosixFileAttributeView.class)) {
-                // launchers in the bin directory need execute permission
+                // launchers in the bin directory need execute permission.
+                // On Windows, "bin" also subdirectories containing jvm.dll.
                 if (Files.isDirectory(bin)) {
-                    Files.list(bin)
-                            .filter(f -> !f.toString().endsWith(".diz"))
-                            .filter(f -> Files.isRegularFile(f))
-                            .forEach(this::setExecutable);
+                    Files.find(bin, 2, (path, attrs) -> {
+                        return attrs.isRegularFile() && !path.toString().endsWith(".diz");
+                    }).forEach(this::setExecutable);
                 }
 
                 // jspawnhelper is in lib or lib/<arch>
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ExcludeVMPlugin.java	Wed Sep 14 11:22:38 2016 -0700
@@ -103,7 +103,9 @@
         List<ResourcePoolEntry> ret = javaBase.entries().filter((t) -> {
             String path = t.path();
             for (String jvmlib : jvmlibs) {
-                return t.path().endsWith("/" + jvmlib);
+                if (t.path().endsWith("/" + jvmlib)) {
+                    return true;
+                }
             }
             return false;
         }).collect(Collectors.toList());
--- a/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/IncludeLocalesPlugin.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/IncludeLocalesPlugin.java	Wed Sep 14 11:22:38 2016 -0700
@@ -264,8 +264,8 @@
 
         // Add Thai BreakIterator related data files
         if (tag.equals("th")) {
-            files.add(".+sun/text/resources/thai_dict");
-            files.add(".+sun/text/resources/[^_]+BreakIteratorData_th");
+            files.add(".+sun/text/resources/ext/thai_dict");
+            files.add(".+sun/text/resources/ext/[^_]+BreakIteratorData_th");
         }
 
         // Add Taiwan resource bundles for Hong Kong
Binary file jdk/src/jdk.localedata/share/classes/sun/text/resources/ext/thai_dict has changed
Binary file jdk/src/jdk.localedata/share/classes/sun/text/resources/thai_dict has changed
--- a/jdk/test/ProblemList.txt	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/ProblemList.txt	Wed Sep 14 11:22:38 2016 -0700
@@ -310,8 +310,6 @@
 
 tools/pack200/CommandLineTests.java                             7143279,8059906 generic-all
 
-tools/pack200/Pack200Test.java                                  8059906,8151901 generic-all
-
 tools/launcher/FXLauncherTest.java                              8068049 linux-all,macosx-all
 
 tools/pack200/Pack200Props.java                                 8155857 generic-all
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/ClassLoader/GetDefinedPackage.java	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/*
+ * @test
+ * @bug 8165346
+ * @summary Basic test for ClassLoader::getDefinedPackage
+ */
+
+public class GetDefinedPackage {
+    public static void main(String... args) {
+        TestClassLoader loader = new TestClassLoader();
+        Package pkg = loader.getDefinedPackage(TestClassLoader.PKG_NAME);
+        if (pkg == null) {
+            throw new RuntimeException("package foo not found");
+        }
+
+        try {
+            loader.getDefinedPackage(null);
+            throw new RuntimeException("NullPointerException not thrown");
+        } catch (NullPointerException e) {
+        }
+    }
+
+    static class TestClassLoader extends ClassLoader {
+        public static final String PKG_NAME = "foo";
+
+        public TestClassLoader() {
+            super();
+            definePackage(PKG_NAME);
+        }
+
+        public Package definePackage(String name) {
+            return definePackage(name, null, null, null, null, null, null, null);
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/ClassLoader/ResourcesStreamTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+import java.io.IOException;
+import java.io.UncheckedIOException;
+import java.net.URL;
+import java.util.Collections;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+
+/*
+ * @test
+ * @bug 8161230
+ * @summary Test java.lang.ClassLoader.resources() method
+ *
+ * @build ResourcesStreamTest
+ * @run main ResourcesStreamTest
+ */
+public class ResourcesStreamTest {
+
+    public static void main(String[] args) throws Exception {
+        testSuccess();
+        testFailure();
+    }
+
+    public static void testSuccess() throws Exception {
+        // failing part first
+        try {
+            ClassLoader cl = new FailingClassLoader();
+            // should create the stream pipe
+            Stream<URL> stream = cl.resources("the name");
+            // expect function to throw an exception when calling the method
+            stream.forEach(System.out::println);
+            throw new Exception("expected UncheckedIOException not thrown");
+        } catch (UncheckedIOException uio) {
+            String causeMessage = uio.getCause().getMessage();
+            if (!"the name".equals(causeMessage))
+                throw new Exception("unexpected cause message: " + causeMessage);
+        }
+    }
+
+    public static void testFailure() throws Exception {
+        ClassLoader cl = new SuccessClassLoader();
+        long count = cl.resources("the name").count();
+        if (count != 1)
+            throw new Exception("expected resource is null or empty");
+
+        cl.resources("the name")
+          .filter(url -> "file:/somefile".equals(url.toExternalForm()))
+          .findFirst()
+          .orElseThrow(() -> new Exception("correct URL not found"));
+    }
+
+    public static class SuccessClassLoader extends ClassLoader {
+        @Override
+        public Enumeration<URL> getResources(String name) throws IOException {
+            URL url = new URL("file:/somefile");
+            return Collections.enumeration(Collections.singleton(url));
+        }
+    }
+
+    public static class FailingClassLoader extends ClassLoader {
+        @Override
+        public Enumeration<URL> getResources(String name) throws IOException {
+            throw new IOException(name);
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/instrument/CustomSystemLoader/Agent.java	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,55 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+import java.io.PrintStream;
+import java.lang.instrument.*;
+import java.lang.reflect.Field;
+
+/**
+  * @test
+  * @bug 8160950
+  * @summary test for custom system class loader
+  *
+  * @run build App Agent CustomLoader
+  * @run shell ../MakeJAR3.sh Agent 'Can-Retransform-Classes: true'
+  * @run main/othervm -javaagent:Agent.jar -Djava.system.class.loader=CustomLoader App
+  */
+
+public class Agent {
+    private static PrintStream err = System.err;
+    private static PrintStream out = System.out;
+    public  static boolean failed = false;
+
+    public static void premain(String agentArgs, Instrumentation instrumentation) {
+        ClassLoader myClassLoader = Agent.class.getClassLoader();
+        out.println("Agent: started; myClassLoader: " + myClassLoader);
+        try {
+            Field fld = myClassLoader.getClass().getField("agentClassLoader");
+            fld.set(myClassLoader.getClass(), myClassLoader);
+        } catch (Exception ex) {
+            failed = true;
+            ex.printStackTrace();
+        }
+        out.println("Agent: finished");
+   }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/instrument/CustomSystemLoader/App.java	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+import java.io.PrintStream;
+
+public class App {
+
+    public static void main(String args[]) throws Exception {
+        (new App()).run(args, System.out);
+    }
+
+    public void run(String args[], PrintStream out) throws Exception {
+        out.println("App: Test started");
+        if (CustomLoader.agentClassLoader != CustomLoader.myself) {
+            System.out.println("App: agentClassLoader:    " + CustomLoader.agentClassLoader);
+            System.out.println("App: CustomLoader.myself: " + CustomLoader.myself);
+            System.out.println("App: myClassLoader:       " + App.class.getClassLoader());
+            throw new Exception("App: Agent's system class loader is not CustomLoader");
+        } else if (Agent.failed) {
+            throw new Exception("App: Agent failed");
+        } else if (CustomLoader.failed) {
+            throw new Exception("App: CustomLoader failed");
+        }
+        out.println("App: Test passed");
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/jdk/test/java/lang/instrument/CustomSystemLoader/CustomLoader.java	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,81 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+import java.io.DataInputStream;
+import java.io.InputStream;
+import java.io.IOException;
+import java.io.PrintStream;
+import java.util.jar.JarFile;
+import java.util.zip.ZipEntry;
+
+public class CustomLoader extends ClassLoader {
+    private static PrintStream out = System.out;
+    public  static ClassLoader myself;
+    public  static ClassLoader agentClassLoader;
+    public  static boolean failed = true;
+
+    public CustomLoader(ClassLoader classLoader) {
+        super(classLoader);
+        myself = this;
+    }
+
+    @Override
+    public Class<?> loadClass(String name) throws ClassNotFoundException {
+        out.println("CustomLoader: loading class: " + name);
+        if (name.equals("Agent")) {
+            Class c = null;
+            try {
+                byte[] buf = locateBytes();
+                c = defineClass(name, buf, 0, buf.length);
+            } catch (IOException ex) {
+                throw new ClassNotFoundException(ex.getMessage());
+            }
+            resolveClass(c);
+            out.println("CustomLoader.loadClass after resolveClass: " + name +
+                        "; Class: " + c + "; ClassLoader: " + c.getClassLoader());
+            return c;
+        }
+        return super.loadClass(name);
+    }
+
+    private byte[] locateBytes() throws IOException {
+        try {
+            JarFile jar = new JarFile("Agent.jar");
+            InputStream is = jar.getInputStream(jar.getEntry("Agent.class"));
+            int len = is.available();
+            byte[] buf = new byte[len];
+            DataInputStream in = new DataInputStream(is);
+            in.readFully(buf);
+            return buf;
+        } catch (IOException ioe) {
+            ioe.printStackTrace();
+            throw new IOException("Test failed due to IOException!");
+        }
+    }
+
+    void appendToClassPathForInstrumentation(String path) {
+        out.println("CustomLoader.appendToClassPathForInstrumentation: " +
+                    this + ", jar: " + path);
+        failed = false;
+    }
+}
--- a/jdk/test/java/net/SetFactoryPermission/SetFactoryPermission.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/net/SetFactoryPermission/SetFactoryPermission.java	Wed Sep 14 11:22:38 2016 -0700
@@ -27,7 +27,7 @@
  * @bug 8048052
  * @summary Test a series of methods which requires "setFactory" runtime permission
  * @modules java.rmi
- * @run main SetFactoryPermission success
+ * @run main/othervm SetFactoryPermission success
  * @run main/othervm/policy=policy.fail SetFactoryPermission fail
  * @run main/othervm/policy=policy.success SetFactoryPermission success
  */
--- a/jdk/test/java/nio/file/DirectoryStream/SecureDS.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/nio/file/DirectoryStream/SecureDS.java	Wed Sep 14 11:22:38 2016 -0700
@@ -45,6 +45,9 @@
             DirectoryStream<Path> stream = newDirectoryStream(dir);
             stream.close();
             if (!(stream instanceof SecureDirectoryStream)) {
+                if (System.getProperty("os.name").equals("Linux"))
+                    throw new AssertionError(
+                            "SecureDirectoryStream not supported.");
                 System.out.println("SecureDirectoryStream not supported.");
                 return;
             }
--- a/jdk/test/java/time/TEST.properties	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/time/TEST.properties	Wed Sep 14 11:22:38 2016 -0700
@@ -1,4 +1,6 @@
 # Threeten test uses TestNG
 TestNG.dirs = .
 othervm.dirs = tck/java/time/chrono test/java/time/chrono test/java/time/format
+modules = jdk.localedata
 lib.dirs = ../../lib/testlibrary
+lib.build = jdk.testlibrary.RandomFactory
--- a/jdk/test/java/util/Calendar/Bug4302966.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/Calendar/Bug4302966.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 4302966
+ * @modules jdk.localedata
  * @summary In Czech Republic first day of week is Monday not Sunday
  */
 
--- a/jdk/test/java/util/Collection/MOAT.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/Collection/MOAT.java	Wed Sep 14 11:22:38 2016 -0700
@@ -112,7 +112,6 @@
         testCollection(Arrays.asList(1,2,3));
         testCollection(nCopies(25,1));
         testImmutableList(nCopies(25,1));
-        testImmutableList(unmodifiableList(Arrays.asList(1,2,3)));
 
         testMap(new HashMap<Integer,Integer>());
         testMap(new LinkedHashMap<Integer,Integer>());
@@ -134,6 +133,20 @@
         testMap(Collections.synchronizedSortedMap(new TreeMap<Integer,Integer>()));
         testMap(Collections.synchronizedNavigableMap(new TreeMap<Integer,Integer>()));
 
+        // Unmodifiable wrappers
+        testImmutableSet(unmodifiableSet(new HashSet<>(Arrays.asList(1,2,3))));
+        testImmutableList(unmodifiableList(Arrays.asList(1,2,3)));
+        testImmutableMap(unmodifiableMap(Collections.singletonMap(1,2)));
+        testCollMutatorsAlwaysThrow(unmodifiableSet(new HashSet<>(Arrays.asList(1,2,3))));
+        testCollMutatorsAlwaysThrow(unmodifiableSet(Collections.emptySet()));
+        testEmptyCollMutatorsAlwaysThrow(unmodifiableSet(Collections.emptySet()));
+        testListMutatorsAlwaysThrow(unmodifiableList(Arrays.asList(1,2,3)));
+        testListMutatorsAlwaysThrow(unmodifiableList(Collections.emptyList()));
+        testEmptyListMutatorsAlwaysThrow(unmodifiableList(Collections.emptyList()));
+        testMapMutatorsAlwaysThrow(unmodifiableMap(Collections.singletonMap(1,2)));
+        testMapMutatorsAlwaysThrow(unmodifiableMap(Collections.emptyMap()));
+        testEmptyMapMutatorsAlwaysThrow(unmodifiableMap(Collections.emptyMap()));
+
         // Empty collections
         final List<Integer> emptyArray = Arrays.asList(new Integer[]{});
         testCollection(emptyArray);
@@ -196,6 +209,8 @@
 
         // Immutable List
         testEmptyList(List.of());
+        testListMutatorsAlwaysThrow(List.of());
+        testEmptyListMutatorsAlwaysThrow(List.of());
         for (List<Integer> list : Arrays.asList(
                 List.<Integer>of(),
                 List.of(1),
@@ -211,10 +226,13 @@
                 List.of(integerArray))) {
             testCollection(list);
             testImmutableList(list);
+            testListMutatorsAlwaysThrow(list);
         }
 
         // Immutable Set
         testEmptySet(Set.of());
+        testCollMutatorsAlwaysThrow(Set.of());
+        testEmptyCollMutatorsAlwaysThrow(Set.of());
         for (Set<Integer> set : Arrays.asList(
                 Set.<Integer>of(),
                 Set.of(1),
@@ -230,6 +248,7 @@
                 Set.of(integerArray))) {
             testCollection(set);
             testImmutableSet(set);
+            testCollMutatorsAlwaysThrow(set);
         }
 
         // Immutable Map
@@ -241,6 +260,8 @@
         }
 
         testEmptyMap(Map.of());
+        testMapMutatorsAlwaysThrow(Map.of());
+        testEmptyMapMutatorsAlwaysThrow(Map.of());
         for (Map<Integer,Integer> map : Arrays.asList(
                 Map.<Integer,Integer>of(),
                 Map.of(1, 101),
@@ -256,6 +277,7 @@
                 Map.ofEntries(ea))) {
             testMap(map);
             testImmutableMap(map);
+            testMapMutatorsAlwaysThrow(map);
         }
     }
 
@@ -358,6 +380,93 @@
                            it.remove(); });
     }
 
+    /**
+     * Test that calling a mutator always throws UOE, even if the mutator
+     * wouldn't actually do anything, given its arguments.
+     *
+     * @param c the collection instance to test
+     */
+    private static void testCollMutatorsAlwaysThrow(Collection<Integer> c) {
+        THROWS(UnsupportedOperationException.class,
+                () -> c.addAll(Collections.emptyList()),
+                () -> c.remove(ABSENT_VALUE),
+                () -> c.removeAll(Collections.emptyList()),
+                () -> c.removeIf(x -> false),
+                () -> c.retainAll(c));
+    }
+
+    /**
+     * Test that calling a mutator always throws UOE, even if the mutator
+     * wouldn't actually do anything on an empty collection.
+     *
+     * @param c the collection instance to test, must be empty
+     */
+    private static void testEmptyCollMutatorsAlwaysThrow(Collection<Integer> c) {
+        if (! c.isEmpty()) {
+            fail("collection is not empty");
+        }
+        THROWS(UnsupportedOperationException.class,
+                () -> c.clear());
+    }
+
+    /**
+     * As above, for a list.
+     *
+     * @param c the list instance to test
+     */
+    private static void testListMutatorsAlwaysThrow(List<Integer> c) {
+        testCollMutatorsAlwaysThrow(c);
+        THROWS(UnsupportedOperationException.class,
+                () -> c.addAll(0, Collections.emptyList()));
+    }
+
+    /**
+     * As above, for an empty list.
+     *
+     * @param c the list instance to test, must be empty
+     */
+    private static void testEmptyListMutatorsAlwaysThrow(List<Integer> c) {
+        if (! c.isEmpty()) {
+            fail("list is not empty");
+        }
+        testEmptyCollMutatorsAlwaysThrow(c);
+        THROWS(UnsupportedOperationException.class,
+                () -> c.replaceAll(x -> x),
+                () -> c.sort(null));
+    }
+
+    /**
+     * As above, for a map.
+     *
+     * @param m the map instance to test
+     */
+    private static void testMapMutatorsAlwaysThrow(Map<Integer,Integer> m) {
+        THROWS(UnsupportedOperationException.class,
+                () -> m.compute(ABSENT_VALUE, (k, v) -> null),
+                () -> m.computeIfAbsent(ABSENT_VALUE, k -> null),
+                () -> m.computeIfPresent(ABSENT_VALUE, (k, v) -> null),
+                () -> m.merge(ABSENT_VALUE, 0, (k, v) -> null),
+                () -> m.putAll(Collections.emptyMap()),
+                () -> m.remove(ABSENT_VALUE),
+                () -> m.remove(ABSENT_VALUE, 0),
+                () -> m.replace(ABSENT_VALUE, 0),
+                () -> m.replace(ABSENT_VALUE, 0, 1));
+    }
+
+    /**
+     * As above, for an empty map.
+     *
+     * @param map the map instance to test, must be empty
+     */
+    private static void testEmptyMapMutatorsAlwaysThrow(Map<Integer,Integer> m) {
+        if (! m.isEmpty()) {
+            fail("map is not empty");
+        }
+        THROWS(UnsupportedOperationException.class,
+                () -> m.clear(),
+                () -> m.replaceAll((k, v) -> v));
+    }
+
     private static void clear(Collection<Integer> c) {
         try { c.clear(); }
         catch (Throwable t) { unexpected(t); }
--- a/jdk/test/java/util/Date/Bug8135055.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/Date/Bug8135055.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8135055
+ * @modules java.sql
  * @summary Test java.sql.TimeStamp instance should come after java.util.Date
  * if Nanos component of TimeStamp is not equal to 0 milliseconds.
 */
--- a/jdk/test/java/util/Formatter/FormatLocale.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/Formatter/FormatLocale.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,6 +24,7 @@
 /**
  * @test
  * @bug 8146156 8159548
+ * @modules jdk.localedata
  * @summary test whether uppercasing follows Locale.Category.FORMAT locale.
  * @run main/othervm FormatLocale
  */
--- a/jdk/test/java/util/PriorityQueue/NoNulls.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/PriorityQueue/NoNulls.java	Wed Sep 14 11:22:38 2016 -0700
@@ -38,10 +38,8 @@
  */
 
 import java.util.ArrayList;
-import java.util.Arrays;
 import java.util.Comparator;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.PriorityQueue;
 import java.util.SortedSet;
 import java.util.TreeSet;
--- a/jdk/test/java/util/ResourceBundle/modules/security/TestPermission.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/ResourceBundle/modules/security/TestPermission.java	Wed Sep 14 11:22:38 2016 -0700
@@ -69,6 +69,7 @@
     @Test
     public void runTest() throws Exception {
         int exitValue = executeTestJava("--module-path", MODS_DIR.toString(),
+                                        "--add-modules", "m1",
                                         "-m", "test/jdk.test.Main")
                             .outputTo(System.out)
                             .errorTo(System.out)
--- a/jdk/test/java/util/ServiceLoader/modules/ServicesTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/ServiceLoader/modules/ServicesTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -42,7 +42,7 @@
  * @test
  * @library /lib/testlibrary
  * @modules java.scripting
-            jdk.compiler
+ *          jdk.compiler
  * @build ServicesTest CompilerUtils jdk.testlibrary.*
  * @run testng ServicesTest
  * @summary Tests ServiceLoader to locate service providers on the module path
@@ -112,6 +112,7 @@
     public void runWithModulePath() throws Exception {
         int exitValue
             = executeTestJava("--module-path", MODS_DIR.toString(),
+                              "--add-modules", "bananascript",
                               "-m", "test/test.Main",
                               "BananaScriptEngine")
                 .outputTo(System.out)
@@ -131,6 +132,7 @@
         int exitValue
             = executeTestJava("--module-path", MODS_DIR.toString(),
                               "-cp", CLASSES_DIR.toString(),
+                              "--add-modules", "bananascript",
                               "-m", "test/test.Main",
                               "BananaScriptEngine", "PearScriptEngine")
                 .outputTo(System.out)
--- a/jdk/test/java/util/TimeZone/HongKong.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/TimeZone/HongKong.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 4487276 8008577
+ * @modules jdk.localedata
  * @summary Verify that Hong Kong locale uses traditional Chinese names.
  * @run main/othervm -Djava.locale.providers=COMPAT,SPI HongKong
  */
--- a/jdk/test/java/util/concurrent/BlockingQueue/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/BlockingQueue/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/BlockingQueue/OfferDrainToLoops.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/BlockingQueue/OfferDrainToLoops.java	Wed Sep 14 11:22:38 2016 -0700
@@ -43,7 +43,6 @@
 import java.util.SplittableRandom;
 import java.util.concurrent.ArrayBlockingQueue;
 import java.util.concurrent.BlockingQueue;
-import java.util.concurrent.CyclicBarrier;
 import java.util.concurrent.LinkedBlockingDeque;
 import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.LinkedTransferQueue;
--- a/jdk/test/java/util/concurrent/ConcurrentHashMap/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ConcurrentHashMap/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/ConcurrentQueues/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ConcurrentQueues/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/ConcurrentQueues/OfferRemoveLoops.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ConcurrentQueues/OfferRemoveLoops.java	Wed Sep 14 11:22:38 2016 -0700
@@ -43,7 +43,6 @@
 import java.util.concurrent.LinkedTransferQueue;
 import java.util.concurrent.PriorityBlockingQueue;
 import java.util.concurrent.Semaphore;
-import java.util.concurrent.ThreadLocalRandom;
 
 @SuppressWarnings({"unchecked", "rawtypes", "deprecation"})
 public class OfferRemoveLoops {
--- a/jdk/test/java/util/concurrent/DelayQueue/Stress.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/DelayQueue/Stress.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,6 @@
  */
 
 import static java.util.concurrent.TimeUnit.NANOSECONDS;
-import static java.util.concurrent.TimeUnit.SECONDS;
 
 import java.util.concurrent.DelayQueue;
 import java.util.concurrent.Delayed;
--- a/jdk/test/java/util/concurrent/Exchanger/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/Exchanger/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/ExecutorCompletionService/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ExecutorCompletionService/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/FutureTask/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/FutureTask/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ZeroCorePoolSize.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ZeroCorePoolSize.java	Wed Sep 14 11:22:38 2016 -0700
@@ -33,7 +33,6 @@
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
 
 import java.util.concurrent.ScheduledThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
 import jdk.testlibrary.Utils;
 
 /**
--- a/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ZeroCoreThreads.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ZeroCoreThreads.java	Wed Sep 14 11:22:38 2016 -0700
@@ -40,7 +40,6 @@
 
 import static java.util.concurrent.TimeUnit.HOURS;
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static java.util.concurrent.TimeUnit.SECONDS;
 
 import java.lang.reflect.Field;
 import java.util.concurrent.BlockingQueue;
--- a/jdk/test/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ThreadPoolExecutor/ConfigChanges.java	Wed Sep 14 11:22:38 2016 -0700
@@ -28,13 +28,13 @@
  * @library /lib/testlibrary/
  * @build jdk.testlibrary.RandomFactory
  * @run main/othervm ConfigChanges
- * @key randomness intermittent
+ * @key randomness
  * @author Martin Buchholz
  */
 
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
 import static java.util.concurrent.TimeUnit.MINUTES;
-import static java.util.concurrent.TimeUnit.SECONDS;
+import static java.util.concurrent.TimeUnit.NANOSECONDS;
 
 import java.security.Permission;
 import java.util.Random;
@@ -44,7 +44,6 @@
 import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.ThreadFactory;
 import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.atomic.AtomicInteger;
 import jdk.testlibrary.RandomFactory;
 
 public class ConfigChanges {
@@ -95,10 +94,10 @@
             check(tpe.getQueue().isEmpty());
             check(tpe.isTerminated());
             check(! tpe.isTerminating());
-            equal(tpe.getActiveCount(), 0);
-            equal(tpe.getPoolSize(), 0);
+            equal(0, tpe.getActiveCount());
+            equal(0, tpe.getPoolSize());
             equal(tpe.getTaskCount(), tpe.getCompletedTaskCount());
-            check(tpe.awaitTermination(0L, SECONDS));
+            check(tpe.awaitTermination(0L, MINUTES));
         } catch (Throwable t) { unexpected(t); }
     }
 
@@ -110,6 +109,21 @@
 
     static volatile Runnable runnableDuJour;
 
+    static void awaitIdleness(ThreadPoolExecutor tpe, long taskCount) {
+        restart: for (;;) {
+            // check twice to make chance of race vanishingly small
+            for (int i = 0; i < 2; i++) {
+                if (tpe.getQueue().size() != 0 ||
+                    tpe.getActiveCount() != 0 ||
+                    tpe.getCompletedTaskCount() != taskCount) {
+                    Thread.yield();
+                    continue restart;
+                }
+            }
+            return;
+        }
+    }
+
     private static void realMain(String[] args) throws Throwable {
         if (rnd.nextBoolean())
             System.setSecurityManager(new PermissiveSecurityManger());
@@ -137,8 +151,9 @@
 
         if (prestart) {
             tpe.prestartAllCoreThreads();
-            equal(tg.activeCount(), n);
-            equal(tg.activeCount(), tpe.getCorePoolSize());
+            equal(n, tg.activeCount());
+            equal(n, tpe.getCorePoolSize());
+            equal(n, tpe.getLargestPoolSize());
         }
 
         final Runnable runRunnableDuJour =
@@ -153,7 +168,7 @@
                 tpe.execute(runRunnableDuJour);
             // Wait for prestarted threads to dequeue their initial tasks.
             while (! tpe.getQueue().isEmpty())
-                Thread.sleep(10);
+                Thread.sleep(1);
             for (int i = 0; i < 5*n; i++)
                 tpe.execute(runRunnableDuJour);
         } else {
@@ -163,73 +178,76 @@
 
         //report("submitted", tpe);
         pumpedUp.await();
-        equal(tg.activeCount(), 3*n);
-        equal(tg.activeCount(), tpe.getMaximumPoolSize());
-        equal(tpe.getCorePoolSize(), n);
+        equal(3*n, tg.activeCount());
+        equal(3*n, tpe.getMaximumPoolSize());
+        equal(3*n, tpe.getLargestPoolSize());
+        equal(n, tpe.getCorePoolSize());
+        equal(3*n, tpe.getActiveCount());
+        equal(6L*n, tpe.getTaskCount());
+        equal(0L, tpe.getCompletedTaskCount());
+
         //report("pumped up", tpe);
-        equal(tpe.getMaximumPoolSize(), 3*n);
         tpe.setMaximumPoolSize(4*n);
-        equal(tpe.getMaximumPoolSize(), 4*n);
+        equal(4*n, tpe.getMaximumPoolSize());
         //report("pumped up2", tpe);
         final CyclicBarrier pumpedUp2 = new CyclicBarrier(n + 1);
         runnableDuJour = waiter(pumpedUp2);
         for (int i = 0; i < 1*n; i++)
             tpe.execute(runRunnableDuJour);
         pumpedUp2.await();
-        equal(tg.activeCount(), 4*n);
-        equal(tg.activeCount(), tpe.getMaximumPoolSize());
-        equal(tpe.getCompletedTaskCount(), 0L);
+        equal(4*n, tg.activeCount());
+        equal(4*n, tpe.getMaximumPoolSize());
+        equal(4*n, tpe.getLargestPoolSize());
+        equal(4*n, tpe.getActiveCount());
+        equal(7L*n, tpe.getTaskCount());
+        equal(0L, tpe.getCompletedTaskCount());
         //report("pumped up2", tpe);
         runnableDuJour = new Runnable() { public void run() {}};
 
         tpe.setMaximumPoolSize(2*n);
-        //report("after set", tpe);
+        //report("after setMaximumPoolSize", tpe);
 
         pumpedUp2.await();
         pumpedUp.await();
 
-//      while (tg.activeCount() != n &&
-//             tg.activeCount() != n)
-//          Thread.sleep(10);
-//      equal(tg.activeCount(), n);
-//      equal(tg.activeCount(), tpe.getCorePoolSize());
-
         while (tg.activeCount() != 2*n &&
                tg.activeCount() != 2*n)
-            Thread.sleep(10);
-        equal(tg.activeCount(), 2*n);
-        equal(tg.activeCount(), tpe.getMaximumPoolSize());
-
+            Thread.yield();
+        equal(2*n, tg.activeCount());
+        equal(2*n, tpe.getMaximumPoolSize());
+        equal(4*n, tpe.getLargestPoolSize());
 
-//report("draining", tpe);
-        while (tpe.getCompletedTaskCount() < 7*n &&
-               tpe.getCompletedTaskCount() < 7*n)
-            Thread.sleep(10);
+        //report("draining", tpe);
+        awaitIdleness(tpe, 7L*n);
 
-        //equal(tg.activeCount(), n);
-        //equal(tg.activeCount(), tpe.getCorePoolSize());
-        equal(tg.activeCount(), 2*n);
-        equal(tg.activeCount(), tpe.getMaximumPoolSize());
+        equal(2*n, tg.activeCount());
+        equal(2*n, tpe.getMaximumPoolSize());
+        equal(4*n, tpe.getLargestPoolSize());
 
-        equal(tpe.getTaskCount(), 7L*n);
-        equal(tpe.getCompletedTaskCount(), 7L*n);
+        equal(7L*n, tpe.getTaskCount());
+        equal(7L*n, tpe.getCompletedTaskCount());
+        equal(0, tpe.getActiveCount());
 
-        equal(tpe.getKeepAliveTime(MINUTES), 3L);
+        equal(3L, tpe.getKeepAliveTime(MINUTES));
+        long t0 = System.nanoTime();
         tpe.setKeepAliveTime(7L, MILLISECONDS);
-        equal(tpe.getKeepAliveTime(MILLISECONDS), 7L);
+        equal(7L, tpe.getKeepAliveTime(MILLISECONDS));
         while (tg.activeCount() > n &&
                tg.activeCount() > n)
-            Thread.sleep(10);
-        equal(tg.activeCount(), n);
+            Thread.sleep(4);
+        equal(n, tg.activeCount());
+        check(System.nanoTime() - t0 >= tpe.getKeepAliveTime(NANOSECONDS));
 
         //report("idle", tpe);
         check(! tpe.allowsCoreThreadTimeOut());
+        t0 = System.nanoTime();
         tpe.allowCoreThreadTimeOut(true);
         check(tpe.allowsCoreThreadTimeOut());
         while (tg.activeCount() > 0 &&
                tg.activeCount() > 0)
-            Thread.sleep(10);
+            Thread.sleep(4);
         equal(tg.activeCount(), 0);
+        check(System.nanoTime() - t0 >= tpe.getKeepAliveTime(NANOSECONDS));
 
         //report("idle", tpe);
 
--- a/jdk/test/java/util/concurrent/ThreadPoolExecutor/ThreadRestarts.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ThreadPoolExecutor/ThreadRestarts.java	Wed Sep 14 11:22:38 2016 -0700
@@ -40,7 +40,6 @@
  */
 
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static java.util.concurrent.TimeUnit.SECONDS;
 
 import java.util.concurrent.ScheduledThreadPoolExecutor;
 import java.util.concurrent.ThreadFactory;
--- a/jdk/test/java/util/concurrent/ThreadPoolExecutor/TimeOutShrink.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/ThreadPoolExecutor/TimeOutShrink.java	Wed Sep 14 11:22:38 2016 -0700
@@ -34,7 +34,6 @@
 import java.util.concurrent.CyclicBarrier;
 import java.util.concurrent.SynchronousQueue;
 import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
 import jdk.testlibrary.Utils;
 
 public class TimeOutShrink {
--- a/jdk/test/java/util/concurrent/atomic/AtomicReferenceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/atomic/AtomicReferenceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,6 @@
  */
 
 import java.util.concurrent.atomic.AtomicReference;
-import java.util.function.UnaryOperator;
 import org.testng.annotations.Test;
 import static org.testng.Assert.*;
 
--- a/jdk/test/java/util/concurrent/forkjoin/SubmissionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/forkjoin/SubmissionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,27 +22,35 @@
  */
 
 import java.util.concurrent.ForkJoinPool;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicBoolean;
+import jdk.testlibrary.Utils;
 
 /*
  * @test
  * @bug 8078490
  * @summary Test submission and execution of task without joining
+ * @library /lib/testlibrary/
  */
 public class SubmissionTest {
+    static final long LONG_DELAY_MS = Utils.adjustTimeout(10_000);
+
+    static long millisElapsedSince(long startTime) {
+        return (System.nanoTime() - startTime) / (1000L * 1000L);
+    }
+
     public static void main(String[] args) throws Throwable {
         final ForkJoinPool e = new ForkJoinPool(1);
         final AtomicBoolean b = new AtomicBoolean();
         final Runnable setFalse = () -> b.set(false);
-        for (int i = 0; i < 100000; i++) {
+        for (int i = 0; i < 30_000; i++) {
             b.set(true);
             e.execute(setFalse);
-            long st = System.nanoTime();
+            long startTime = System.nanoTime();
             while (b.get()) {
-                if (System.nanoTime() - st >= TimeUnit.SECONDS.toNanos(10)) {
+                if (millisElapsedSince(startTime) >= LONG_DELAY_MS) {
                     throw new RuntimeException("Submitted task failed to execute");
                 }
+                Thread.yield();
             }
         }
     }
--- a/jdk/test/java/util/concurrent/locks/Lock/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/Lock/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/locks/Lock/Mutex.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/Lock/Mutex.java	Wed Sep 14 11:22:38 2016 -0700
@@ -35,7 +35,6 @@
 import java.util.concurrent.locks.AbstractQueuedSynchronizer;
 import java.util.concurrent.locks.Condition;
 import java.util.concurrent.locks.Lock;
-import java.util.concurrent.atomic.AtomicInteger;
 import java.io.IOException;
 import java.io.ObjectInputStream;
 
--- a/jdk/test/java/util/concurrent/locks/LockSupport/ParkLoops.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/LockSupport/ParkLoops.java	Wed Sep 14 11:22:38 2016 -0700
@@ -43,7 +43,6 @@
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
-import java.util.concurrent.atomic.AtomicLong;
 import java.util.concurrent.atomic.AtomicReferenceArray;
 import java.util.concurrent.locks.LockSupport;
 
--- a/jdk/test/java/util/concurrent/locks/ReentrantLock/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/ReentrantLock/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/LoopHelpers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/ReentrantReadWriteLock/LoopHelpers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,8 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.concurrent.atomic.AtomicLong;
-
 /**
  * Misc utilities in JSR166 performance tests
  */
--- a/jdk/test/java/util/concurrent/locks/StampedLock/ReadersUnlockAfterWriteUnlock.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/locks/StampedLock/ReadersUnlockAfterWriteUnlock.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,6 @@
 
 /*
  * @test
- * @run main/othervm/timeout=60 ReadersUnlockAfterWriteUnlock
  * @bug 8023234
  * @summary StampedLock serializes readers on writer unlock
  * @author Dmitry Chyuko
@@ -30,26 +29,23 @@
  */
 
 import java.util.concurrent.CyclicBarrier;
+import java.util.concurrent.atomic.AtomicReference;
 import java.util.concurrent.locks.StampedLock;
 
 public class ReadersUnlockAfterWriteUnlock {
-    static final int RNUM = 2;
-    static final StampedLock sl = new StampedLock();
-    static volatile boolean isDone;
-
-    static CyclicBarrier iterationStart = new CyclicBarrier(RNUM + 1);
-    static CyclicBarrier readersHaveLocks = new CyclicBarrier(RNUM);
-    static CyclicBarrier writerHasLock = new CyclicBarrier(RNUM + 1);
+    public static void main(String[] args) throws InterruptedException {
+        final int RNUM = 2;
+        final int REPS = 128;
+        final StampedLock sl = new StampedLock();
+        final AtomicReference<Throwable> bad = new AtomicReference<>();
 
-    static class Reader extends Thread {
-        final String name;
-        Reader(String name) {
-            super();
-            this.name = name;
-        }
-        public void run() {
-            while (!isDone && !isInterrupted()) {
-                try {
+        final CyclicBarrier iterationStart = new CyclicBarrier(RNUM + 1);
+        final CyclicBarrier readersHaveLocks = new CyclicBarrier(RNUM);
+        final CyclicBarrier writerHasLock = new CyclicBarrier(RNUM + 1);
+
+        Runnable reader = () -> {
+            try {
+                for (int i = 0; i < REPS; i++) {
                     iterationStart.await();
                     writerHasLock.await();
                     long rs = sl.readLock();
@@ -59,30 +55,45 @@
                     readersHaveLocks.await();
 
                     sl.unlockRead(rs);
-                } catch (Exception e) {
-                    throw new IllegalStateException(e);
                 }
+            } catch (Throwable ex) {
+                ex.printStackTrace();
+                bad.set(ex);
             }
-        }
-    }
+        };
 
-    public static void main(String[] args) throws InterruptedException {
-        for (int r = 0 ; r < RNUM; ++r) {
-            new Reader("r" + r).start();
+        Thread[] threads = new Thread[RNUM];
+        for (int i = 0 ; i < RNUM; i++) {
+            Thread thread = new Thread(reader, "Reader");
+            threads[i] = thread;
+            thread.start();
         }
-        int i;
-        for (i = 0; i < 1024; ++i) {
+        for (int i = 0; i < REPS; i++) {
             try {
                 iterationStart.await();
                 long ws = sl.writeLock();
                 writerHasLock.await();
-                Thread.sleep(10);
+                awaitWaitState(threads);
                 sl.unlockWrite(ws);
             } catch (Exception e) {
                 throw new IllegalStateException(e);
             }
         }
-        isDone = true;
+        for (Thread thread : threads)
+            thread.join();
+        if (bad.get() != null)
+            throw new AssertionError(bad.get());
     }
 
+    static void awaitWaitState(Thread[] threads) {
+        restart: for (;;) {
+            for (Thread thread : threads) {
+                if (thread.getState() != Thread.State.WAITING) {
+                    Thread.yield();
+                    continue restart;
+                }
+            }
+            break;
+        }
+    }
 }
--- a/jdk/test/java/util/concurrent/tck/AtomicIntegerArray9Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/AtomicIntegerArray9Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,7 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.Arrays;
 import java.util.concurrent.atomic.AtomicIntegerArray;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/concurrent/tck/AtomicLongArray9Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/AtomicLongArray9Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,7 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.Arrays;
 import java.util.concurrent.atomic.AtomicLongArray;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/concurrent/tck/AtomicReferenceArray9Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/AtomicReferenceArray9Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -31,7 +31,6 @@
  * http://creativecommons.org/publicdomain/zero/1.0/
  */
 
-import java.util.Arrays;
 import java.util.concurrent.atomic.AtomicReferenceArray;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/concurrent/tck/CompletableFutureTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/CompletableFutureTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -59,7 +59,6 @@
 import java.util.concurrent.ForkJoinTask;
 import java.util.concurrent.RejectedExecutionException;
 import java.util.concurrent.TimeoutException;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicReference;
 import java.util.function.BiConsumer;
--- a/jdk/test/java/util/concurrent/tck/ConcurrentHashMap8Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ConcurrentHashMap8Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -38,7 +38,6 @@
 import java.util.AbstractMap;
 import java.util.Arrays;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.Map;
 import java.util.NoSuchElementException;
--- a/jdk/test/java/util/concurrent/tck/CopyOnWriteArrayListTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/CopyOnWriteArrayListTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -36,7 +36,6 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.List;
--- a/jdk/test/java/util/concurrent/tck/CopyOnWriteArraySetTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/CopyOnWriteArraySetTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -36,7 +36,6 @@
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Collection;
-import java.util.Collections;
 import java.util.Iterator;
 import java.util.NoSuchElementException;
 import java.util.Set;
--- a/jdk/test/java/util/concurrent/tck/CountedCompleterTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/CountedCompleterTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -40,9 +40,12 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ForkJoinPool;
 import java.util.concurrent.ForkJoinTask;
+import java.util.concurrent.ThreadLocalRandom;
 import java.util.concurrent.TimeoutException;
 import java.util.concurrent.atomic.AtomicInteger;
 import java.util.concurrent.atomic.AtomicReference;
+import java.util.function.BiConsumer;
+import java.util.function.Consumer;
 
 import junit.framework.Test;
 import junit.framework.TestSuite;
@@ -1869,4 +1872,115 @@
         testInvokeOnPool(singletonPool(), a);
     }
 
+    /** CountedCompleter class javadoc code sample, version 1. */
+    public static <E> void forEach1(E[] array, Consumer<E> action) {
+        class Task extends CountedCompleter<Void> {
+            final int lo, hi;
+            Task(Task parent, int lo, int hi) {
+                super(parent); this.lo = lo; this.hi = hi;
+            }
+
+            public void compute() {
+                if (hi - lo >= 2) {
+                    int mid = (lo + hi) >>> 1;
+                    // must set pending count before fork
+                    setPendingCount(2);
+                    new Task(this, mid, hi).fork(); // right child
+                    new Task(this, lo, mid).fork(); // left child
+                }
+                else if (hi > lo)
+                    action.accept(array[lo]);
+                tryComplete();
+            }
+        }
+        new Task(null, 0, array.length).invoke();
+    }
+
+    /** CountedCompleter class javadoc code sample, version 2. */
+    public static <E> void forEach2(E[] array, Consumer<E> action) {
+        class Task extends CountedCompleter<Void> {
+            final int lo, hi;
+            Task(Task parent, int lo, int hi) {
+                super(parent); this.lo = lo; this.hi = hi;
+            }
+
+            public void compute() {
+                if (hi - lo >= 2) {
+                    int mid = (lo + hi) >>> 1;
+                    setPendingCount(1); // looks off by one, but correct!
+                    new Task(this, mid, hi).fork(); // right child
+                    new Task(this, lo, mid).compute(); // direct invoke
+                } else {
+                    if (hi > lo)
+                        action.accept(array[lo]);
+                    tryComplete();
+                }
+            }
+        }
+        new Task(null, 0, array.length).invoke();
+    }
+
+    /** CountedCompleter class javadoc code sample, version 3. */
+    public static <E> void forEach3(E[] array, Consumer<E> action) {
+        class Task extends CountedCompleter<Void> {
+            final int lo, hi;
+            Task(Task parent, int lo, int hi) {
+                super(parent); this.lo = lo; this.hi = hi;
+            }
+
+            public void compute() {
+                int n = hi - lo;
+                for (; n >= 2; n /= 2) {
+                    addToPendingCount(1);
+                    new Task(this, lo + n/2, lo + n).fork();
+                }
+                if (n > 0)
+                    action.accept(array[lo]);
+                propagateCompletion();
+            }
+        }
+        new Task(null, 0, array.length).invoke();
+    }
+
+    /** CountedCompleter class javadoc code sample, version 4. */
+    public static <E> void forEach4(E[] array, Consumer<E> action) {
+        class Task extends CountedCompleter<Void> {
+            final int lo, hi;
+            Task(Task parent, int lo, int hi) {
+                super(parent, 31 - Integer.numberOfLeadingZeros(hi - lo));
+                this.lo = lo; this.hi = hi;
+            }
+
+            public void compute() {
+                for (int n = hi - lo; n >= 2; n /= 2)
+                    new Task(this, lo + n/2, lo + n).fork();
+                action.accept(array[lo]);
+                propagateCompletion();
+            }
+        }
+        if (array.length > 0)
+            new Task(null, 0, array.length).invoke();
+    }
+
+    void testRecursiveDecomposition(
+        BiConsumer<Integer[], Consumer<Integer>> action) {
+        int n = ThreadLocalRandom.current().nextInt(8);
+        Integer[] a = new Integer[n];
+        for (int i = 0; i < n; i++) a[i] = i + 1;
+        AtomicInteger ai = new AtomicInteger(0);
+        action.accept(a, (x) -> ai.addAndGet(x));
+        assertEquals(n * (n + 1) / 2, ai.get());
+    }
+
+    /**
+     * Variants of divide-by-two recursive decomposition into leaf tasks,
+     * as described in the CountedCompleter class javadoc code samples
+     */
+    public void testRecursiveDecomposition() {
+        testRecursiveDecomposition(CountedCompleterTest::forEach1);
+        testRecursiveDecomposition(CountedCompleterTest::forEach2);
+        testRecursiveDecomposition(CountedCompleterTest::forEach3);
+        testRecursiveDecomposition(CountedCompleterTest::forEach4);
+    }
+
 }
--- a/jdk/test/java/util/concurrent/tck/ExecutorCompletionService9Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ExecutorCompletionService9Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -42,7 +42,6 @@
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Executor;
 import java.util.concurrent.ExecutorCompletionService;
-import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/concurrent/tck/ExecutorCompletionServiceTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ExecutorCompletionServiceTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -40,7 +40,6 @@
 import java.util.concurrent.CompletionService;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Executor;
 import java.util.concurrent.ExecutorCompletionService;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
--- a/jdk/test/java/util/concurrent/tck/ForkJoinPool8Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ForkJoinPool8Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -296,12 +296,11 @@
         RecursiveAction a = new CheckedRecursiveAction() {
             protected void realCompute() {
                 FibAction f = new FibAction(8);
-                final Thread myself = Thread.currentThread();
+                final Thread currentThread = Thread.currentThread();
 
                 // test join()
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 assertNull(f.join());
                 Thread.interrupted();
                 assertEquals(21, f.result);
@@ -310,8 +309,7 @@
                 f = new FibAction(8);
                 f.cancel(true);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -323,8 +321,7 @@
                 f = new FibAction(8);
                 f.completeExceptionally(new FJException());
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -336,8 +333,7 @@
                 // test quietlyJoin()
                 f = new FibAction(8);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 assertEquals(21, f.result);
@@ -346,8 +342,7 @@
                 f = new FibAction(8);
                 f.cancel(true);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 checkCancelled(f);
@@ -355,8 +350,7 @@
                 f = new FibAction(8);
                 f.completeExceptionally(new FJException());
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 checkCompletedAbnormally(f, f.getException());
--- a/jdk/test/java/util/concurrent/tck/ForkJoinTask8Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ForkJoinTask8Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -35,7 +35,6 @@
 import static java.util.concurrent.TimeUnit.SECONDS;
 
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ForkJoinPool;
--- a/jdk/test/java/util/concurrent/tck/ForkJoinTaskTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ForkJoinTaskTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -35,9 +35,7 @@
 import static java.util.concurrent.TimeUnit.SECONDS;
 
 import java.util.Arrays;
-import java.util.Collections;
 import java.util.HashSet;
-import java.util.List;
 import java.util.concurrent.CancellationException;
 import java.util.concurrent.ExecutionException;
 import java.util.concurrent.ForkJoinPool;
--- a/jdk/test/java/util/concurrent/tck/JSR166TestCase.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/JSR166TestCase.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1264,7 +1264,7 @@
      * Sleeps until the given time has elapsed.
      * Throws AssertionFailedError if interrupted.
      */
-    void sleep(long millis) {
+    static void sleep(long millis) {
         try {
             delay(millis);
         } catch (InterruptedException fail) {
--- a/jdk/test/java/util/concurrent/tck/RecursiveActionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/RecursiveActionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -285,12 +285,11 @@
         RecursiveAction a = new CheckedRecursiveAction() {
             protected void realCompute() {
                 FibAction f = new FibAction(8);
-                final Thread myself = Thread.currentThread();
+                final Thread currentThread = Thread.currentThread();
 
                 // test join()
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 assertNull(f.join());
                 Thread.interrupted();
                 assertEquals(21, f.result);
@@ -299,8 +298,7 @@
                 f = new FibAction(8);
                 f.cancel(true);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -312,8 +310,7 @@
                 f = new FibAction(8);
                 f.completeExceptionally(new FJException());
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -325,8 +322,7 @@
                 // test quietlyJoin()
                 f = new FibAction(8);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 assertEquals(21, f.result);
@@ -335,8 +331,7 @@
                 f = new FibAction(8);
                 f.cancel(true);
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 checkCancelled(f);
@@ -344,8 +339,7 @@
                 f = new FibAction(8);
                 f.completeExceptionally(new FJException());
                 assertSame(f, f.fork());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 Thread.interrupted();
                 checkCompletedAbnormally(f, f.getException());
@@ -385,22 +379,20 @@
             public void realRun() throws InterruptedException {
                 FibAction[] fibActions = sq.take();
                 FibAction f;
-                final Thread myself = Thread.currentThread();
+                final Thread currentThread = Thread.currentThread();
 
                 // test join() ------------
 
                 f = fibActions[0];
                 assertFalse(ForkJoinTask.inForkJoinPool());
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 assertNull(f.join());
                 assertTrue(Thread.interrupted());
                 assertEquals(21, f.result);
                 checkCompletedNormally(f);
 
                 f = fibActions[1];
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -410,8 +402,7 @@
                 }
 
                 f = fibActions[2];
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 try {
                     f.join();
                     shouldThrow();
@@ -423,23 +414,20 @@
                 // test quietlyJoin() ---------
 
                 f = fibActions[3];
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 assertTrue(Thread.interrupted());
                 assertEquals(21, f.result);
                 checkCompletedNormally(f);
 
                 f = fibActions[4];
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 assertTrue(Thread.interrupted());
                 checkCancelled(f);
 
                 f = fibActions[5];
-                myself.interrupt();
-                assertTrue(myself.isInterrupted());
+                currentThread.interrupt();
                 f.quietlyJoin();
                 assertTrue(Thread.interrupted());
                 assertTrue(f.getException() instanceof FJException);
--- a/jdk/test/java/util/concurrent/tck/ScheduledExecutorSubclassTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ScheduledExecutorSubclassTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -44,7 +44,6 @@
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.Delayed;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Executors;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.RejectedExecutionException;
--- a/jdk/test/java/util/concurrent/tck/ScheduledExecutorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ScheduledExecutorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -45,7 +45,6 @@
 import java.util.concurrent.CancellationException;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Executors;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.RejectedExecutionException;
--- a/jdk/test/java/util/concurrent/tck/StampedLockTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/StampedLockTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -44,7 +44,6 @@
 import java.util.concurrent.locks.Lock;
 import java.util.concurrent.locks.StampedLock;
 import java.util.function.BiConsumer;
-import java.util.function.Consumer;
 import java.util.function.Function;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/concurrent/tck/SubmissionPublisherTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/SubmissionPublisherTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -37,24 +37,14 @@
 import java.util.concurrent.Executors;
 import java.util.concurrent.Flow;
 import java.util.concurrent.ForkJoinPool;
-import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.SubmissionPublisher;
-import java.util.concurrent.ThreadFactory;
-import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
-import java.util.function.BiConsumer;
-import java.util.function.BiFunction;
-import java.util.function.BiPredicate;
-import java.util.stream.Stream;
 import junit.framework.Test;
 import junit.framework.TestSuite;
 
-import static java.util.concurrent.Flow.Publisher;
 import static java.util.concurrent.Flow.Subscriber;
 import static java.util.concurrent.Flow.Subscription;
 import static java.util.concurrent.TimeUnit.MILLISECONDS;
-import static java.util.concurrent.TimeUnit.SECONDS;
 
 public class SubmissionPublisherTest extends JSR166TestCase {
 
--- a/jdk/test/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ThreadPoolExecutorSubclassTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -44,7 +44,6 @@
 import java.util.concurrent.CancellationException;
 import java.util.concurrent.CountDownLatch;
 import java.util.concurrent.ExecutionException;
-import java.util.concurrent.Executors;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Future;
 import java.util.concurrent.FutureTask;
--- a/jdk/test/java/util/concurrent/tck/ThreadPoolExecutorTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/concurrent/tck/ThreadPoolExecutorTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -55,7 +55,6 @@
 import java.util.concurrent.SynchronousQueue;
 import java.util.concurrent.ThreadFactory;
 import java.util.concurrent.ThreadPoolExecutor;
-import java.util.concurrent.TimeUnit;
 import java.util.concurrent.atomic.AtomicInteger;
 
 import junit.framework.Test;
--- a/jdk/test/java/util/jar/JarFile/mrjar/MultiReleaseJarAPI.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/jar/JarFile/mrjar/MultiReleaseJarAPI.java	Wed Sep 14 11:22:38 2016 -0700
@@ -23,23 +23,29 @@
 
 /*
  * @test
- * @bug 8132734 8144062
+ * @bug 8132734 8144062 8165723
  * @summary Test the extended API and the aliasing additions in JarFile that
  *          support multi-release jar files
- * @library /lib/testlibrary/java/util/jar
+ * @library /lib/testlibrary/java/util/jar /lib/testlibrary/
  * @build Compiler JarBuilder CreateMultiReleaseTestJars
+ * @build jdk.testlibrary.RandomFactory
  * @run testng MultiReleaseJarAPI
  */
 
 import java.io.File;
 import java.io.IOException;
 import java.io.InputStream;
+import java.nio.charset.StandardCharsets;
 import java.nio.file.Files;
 import java.util.Arrays;
+import java.util.Map;
+import java.util.Random;
 import java.util.jar.JarFile;
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipFile;
 
+import jdk.testlibrary.RandomFactory;
+
 import org.testng.Assert;
 import org.testng.annotations.AfterClass;
 import org.testng.annotations.BeforeClass;
@@ -48,12 +54,15 @@
 
 public class MultiReleaseJarAPI {
 
+    private static final Random RANDOM = RandomFactory.getRandom();
+
     String userdir = System.getProperty("user.dir",".");
     CreateMultiReleaseTestJars creator =  new CreateMultiReleaseTestJars();
     File unversioned = new File(userdir, "unversioned.jar");
     File multirelease = new File(userdir, "multi-release.jar");
     File signedmultirelease = new File(userdir, "signed-multi-release.jar");
 
+
     @BeforeClass
     public void initialize() throws Exception {
         creator.compileEntries();
@@ -99,10 +108,35 @@
         testCustomMultiReleaseValue("true\r ", false);
         testCustomMultiReleaseValue("true\n true", false);
         testCustomMultiReleaseValue("true\r\n true", false);
+
+        // generate "random" Strings to use as extra attributes, and
+        // verify that Multi-Release: true is always properly matched
+        for (int i = 0; i < 100; i++) {
+            byte[] keyBytes = new byte[RANDOM.nextInt(70) + 1];
+            Arrays.fill(keyBytes, (byte)('a' + RANDOM.nextInt(24)));
+            byte[] valueBytes = new byte[RANDOM.nextInt(70) + 1];
+            Arrays.fill(valueBytes, (byte)('a' + RANDOM.nextInt(24)));
+
+            String key = new String(keyBytes, StandardCharsets.UTF_8);
+            String value = new String(valueBytes, StandardCharsets.UTF_8);
+            // test that Multi-Release: true anywhere in the manifest always
+            // return true
+            testCustomMultiReleaseValue("true", Map.of(key, value), true);
+
+            // test that we don't get any false positives
+            testCustomMultiReleaseValue("false", Map.of(key, value), false);
+        }
     }
 
-    private void testCustomMultiReleaseValue(String value, boolean expected) throws Exception {
-        creator.buildCustomMultiReleaseJar("custom-mr.jar", value);
+    private void testCustomMultiReleaseValue(String value, boolean expected)
+            throws Exception {
+        testCustomMultiReleaseValue(value, Map.of(), expected);
+    }
+
+    private void testCustomMultiReleaseValue(String value,
+            Map<String, String> extraAttributes, boolean expected)
+            throws Exception {
+        creator.buildCustomMultiReleaseJar("custom-mr.jar", value, extraAttributes);
         File custom = new File(userdir, "custom-mr.jar");
         try (JarFile jf = new JarFile(custom, true, ZipFile.OPEN_READ, Runtime.version())) {
             Assert.assertEquals(jf.isMultiRelease(), expected);
--- a/jdk/test/java/util/logging/modules/GetResourceBundleTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/java/util/logging/modules/GetResourceBundleTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -37,6 +37,7 @@
  * @bug 8129126 8136802 8137316 8137317 8136804 8139350
  * @library /lib/testlibrary
  * @modules jdk.compiler
+ *          java.logging
  * @build GetResourceBundleTest CompilerUtils jdk.testlibrary.ProcessTools
  * @run testng GetResourceBundleTest
  * @summary Tests Logger.getLogger + logger.getResourceBundle in an named/unnamed module,
--- a/jdk/test/lib/testlibrary/java/util/jar/CreateMultiReleaseTestJars.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/lib/testlibrary/java/util/jar/CreateMultiReleaseTestJars.java	Wed Sep 14 11:22:38 2016 -0700
@@ -88,12 +88,35 @@
     }
 
     public void buildMultiReleaseJar() throws IOException {
-        buildCustomMultiReleaseJar("multi-release.jar", "true");
+        JarBuilder jb = customMultiReleaseJar("multi-release.jar", "true");
+        addEntries(jb);
+        jb.addEntry("META-INF/versions/9/version/Version.class", version9Classes.get("version.Version"));
+        jb.build();
+    }
+
+    public void buildShortMultiReleaseJar() throws IOException {
+        JarBuilder jb = customMultiReleaseJar("short-multi-release.jar", "true");
+        addEntries(jb);
+        jb.build();
     }
 
-    public void buildCustomMultiReleaseJar(String filename, String multiReleaseValue) throws IOException {
+    private JarBuilder customMultiReleaseJar(String filename, String multiReleaseValue)
+            throws IOException {
         JarBuilder jb = new JarBuilder(filename);
         jb.addAttribute("Multi-Release", multiReleaseValue);
+        return jb;
+    }
+
+    public void buildCustomMultiReleaseJar(String filename, String multiReleaseValue,
+            Map<String, String> extraAttributes) throws IOException {
+        JarBuilder jb = new JarBuilder(filename);
+        extraAttributes.entrySet()
+                .forEach(entry -> jb.addAttribute(entry.getKey(), entry.getValue()));
+        jb.addAttribute("Multi-Release", multiReleaseValue);
+        jb.build();
+    }
+
+    private void addEntries(JarBuilder jb) {
         jb.addEntry("README", readme8.getBytes());
         jb.addEntry("version/Main.java", main.getBytes());
         jb.addEntry("version/Main.class", rootClasses.get("version.Main"));
@@ -102,31 +125,10 @@
         jb.addEntry("META-INF/versions/9/README", readme9.getBytes());
         jb.addEntry("META-INF/versions/9/version/Version.java", java9.getBytes());
         jb.addEntry("META-INF/versions/9/version/PackagePrivate.java", ppjava9.getBytes());
-        jb.addEntry("META-INF/versions/9/version/Version.class", version9Classes.get("version.Version"));
         jb.addEntry("META-INF/versions/9/version/PackagePrivate.class", version9Classes.get("version.PackagePrivate"));
         jb.addEntry("META-INF/versions/10/README", readme10.getBytes());
         jb.addEntry("META-INF/versions/10/version/Version.java", java10.getBytes());
         jb.addEntry("META-INF/versions/10/version/Version.class", version10Classes.get("version.Version"));
-        jb.build();
-    }
-
-    public void buildShortMultiReleaseJar() throws IOException {
-        JarBuilder jb = new JarBuilder("short-multi-release.jar");
-        jb.addAttribute("Multi-Release", "true");
-        jb.addEntry("README", readme8.getBytes());
-        jb.addEntry("version/Main.java", main.getBytes());
-        jb.addEntry("version/Main.class", rootClasses.get("version.Main"));
-        jb.addEntry("version/Version.java", java8.getBytes());
-        jb.addEntry("version/Version.class", rootClasses.get("version.Version"));
-        jb.addEntry("META-INF/versions/9/README", readme9.getBytes());
-        jb.addEntry("META-INF/versions/9/version/Version.java", java9.getBytes());
-        jb.addEntry("META-INF/versions/9/version/PackagePrivate.java", ppjava9.getBytes());
-        // no entry for META-INF/versions/9/version/Version.class
-        jb.addEntry("META-INF/versions/9/version/PackagePrivate.class", version9Classes.get("version.PackagePrivate"));
-        jb.addEntry("META-INF/versions/10/README", readme10.getBytes());
-        jb.addEntry("META-INF/versions/10/version/Version.java", java10.getBytes());
-        jb.addEntry("META-INF/versions/10/version/Version.class", version10Classes.get("version.Version"));
-        jb.build();
     }
 
     public void buildSignedMultiReleaseJar() throws Exception {
--- a/jdk/test/sun/text/resources/Collator/Bug4248694.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Collator/Bug4248694.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,11 +24,13 @@
 /*
  * @test
  * @bug 4248694
+ * @modules jdk.localedata
  * @summary updating collation tables for icelandic
  */
 
-import java.text.*;
-import java.util.*;
+import java.text.Collator;
+import java.util.Arrays;
+import java.util.Locale;
 
 public class Bug4248694 {
 
--- a/jdk/test/sun/text/resources/Collator/Bug4804273.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Collator/Bug4804273.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,11 +24,13 @@
 /*
  * @test
  * @bug 4804273
+ * @modules jdk.localedata
  * @summary updating collation tables for swedish
  */
 
-import java.text.*;
-import java.util.*;
+import java.text.Collator;
+import java.util.Arrays;
+import java.util.Locale;
 
 public class Bug4804273 {
 
--- a/jdk/test/sun/text/resources/Collator/Bug6755060.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Collator/Bug6755060.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,11 +24,13 @@
 /*
  * @test
  * @bug 6755060
+ * @modules jdk.localedata
  * @summary updating collation tables for thai to make it consistent with CLDR 1.9
  */
 
-import java.text.*;
-import java.util.*;
+import java.text.Collator;
+import java.util.Arrays;
+import java.util.Locale;
 
 public class Bug6755060 {
 
--- a/jdk/test/sun/text/resources/Format/Bug4395196.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4395196.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,15 +22,18 @@
  */
 
 /*
- *@test
- *@bug 4395196 4930708 4900884 4890240 8008577
- *@summary verify the ko DateFormat
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug4395196
-*/
+ * @test
+ * @bug 4395196 4930708 4900884 4890240 8008577
+ * @modules jdk.localedata
+ * @summary verify the ko DateFormat
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4395196
+ */
 
-import java.io.*;
-import java.text.*;
-import java.util.*;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Locale;
 
 public class Bug4395196
 {
--- a/jdk/test/sun/text/resources/Format/Bug4442855.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4442855.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,14 +22,16 @@
  */
 
 /*
- *@test
- *@bug 4442855
- *@summary verify the era's translation for tradition chinese
+ * @test
+ * @bug 4442855
+ * @modules jdk.localedata
+ * @summary verify the era's translation for tradition chinese
  */
 
-import java.io.*;
-import java.util.*;
-import java.text.*;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Locale;
 
 public class Bug4442855
 {
--- a/jdk/test/sun/text/resources/Format/Bug4621320.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4621320.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,10 +24,12 @@
 /*
  * @test
  * @bug 4621320
+ * @modules jdk.localedata
  * @summary Verify that Ukrainian month name is correct.
  */
-import java.text.*;
-import java.util.*;
+
+import java.text.DateFormatSymbols;
+import java.util.Locale;
 
 public class Bug4621320 {
 
--- a/jdk/test/sun/text/resources/Format/Bug4651568.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4651568.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 4651568 8008577
- *@summary Verifies the currency pattern for pt_BR locale
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug4651568
+ * @test
+ * @bug 4651568 8008577
+ * @modules jdk.localedata
+ * @summary Verifies the currency pattern for pt_BR locale
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4651568
  */
 
 import java.text.DecimalFormat;
--- a/jdk/test/sun/text/resources/Format/Bug4762201.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4762201.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,15 +22,17 @@
  */
 
 /*
- *@test
- *@bug 4762201
- *@summary verify the zh_CN full time pattern (and other time patterns)
- *@run main/othervm -Djava.locale.providers=COMPAT,SPI Bug4762201
-*/
+ * @test
+ * @bug 4762201
+ * @modules jdk.localedata
+ * @summary verify the zh_CN full time pattern (and other time patterns)
+ * @run main/othervm -Djava.locale.providers=COMPAT,SPI Bug4762201
+ */
 
-import java.io.*;
-import java.text.*;
-import java.util.*;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.Locale;
 
 public class Bug4762201
 {
--- a/jdk/test/sun/text/resources/Format/Bug4807540.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4807540.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test %i%
  * @bug 4807540 8008577
+ * @modules jdk.localedata
  * @summary updating dateformat for sl_SI
  * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4807540
  */
--- a/jdk/test/sun/text/resources/Format/Bug4810032.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4810032.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,14 +22,16 @@
  */
 
 /*
- *@test
- *@bug 4810032 8008577
- *@summary verify the ja full time pattern parsing
+ * @test
+ * @bug 4810032 8008577
+ * @modules jdk.localedata
+ * @summary verify the ja full time pattern parsing
  * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4810032
 */
 
-import java.text.*;
-import java.util.*;
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.util.Locale;
 
 public class Bug4810032
 {
--- a/jdk/test/sun/text/resources/Format/Bug4994312.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug4994312.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,9 +22,10 @@
  */
 
 /*
- *@test
- *@bug 4994312 8008577
- *@summary verify the German locale will accept localized pattern chars 't' and 'u'.
+ * @test
+ * @bug 4994312 8008577
+ * @modules jdk.localedata
+ * @summary verify the German locale will accept localized pattern chars 't' and 'u'.
  * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4994312
  */
 
--- a/jdk/test/sun/text/resources/Format/Bug5096553.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug5096553.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 5096553 8008577
+ * @modules jdk.localedata
  * @summary updating dateformat for da_DK
  *          following resources:
  *          http://oss.software.ibm.com/cvs/icu/~checkout~/locale/common/main/da.xml
--- a/jdk/test/sun/text/resources/Format/Bug8037343.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug8037343.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8008577 8037343
+ * @modules jdk.localedata
  * @summary updating dateformat for es_DO
  * @run main/othervm -Djava.locale.providers=JRE,SPI Bug8037343
  */
--- a/jdk/test/sun/text/resources/Format/Bug8074791.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/Format/Bug8074791.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8074791
+ * @modules jdk.localedata
  * @summary Make sure that Finnish month names are correct in formatted text.
  */
 
@@ -32,7 +33,7 @@
 import java.util.Date;
 import java.util.GregorianCalendar;
 import java.util.Locale;
-import static java.text.DateFormat.*;
+import static java.text.DateFormat.LONG;
 import static java.util.Calendar.JANUARY;
 
 public class Bug8074791 {
--- a/jdk/test/sun/text/resources/LocaleDataTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/text/resources/LocaleDataTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -40,6 +40,7 @@
  *      8145136
  * @summary Verify locale data
  * @modules java.base/sun.util.resources
+ * @modules jdk.localedata
  * @run main LocaleDataTest
  * @run main LocaleDataTest -cldr
  *
@@ -145,12 +146,20 @@
  *    this test against the new version of the data.
  */
 
-import java.io.*;
-import java.text.*;
+import java.io.BufferedReader;
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FilterReader;
+import java.io.FilterWriter;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.OutputStreamWriter;
+import java.io.PrintWriter;
+import java.io.Reader;
+import java.io.Writer;
 import java.util.Locale;
+import java.util.MissingResourceException;
 import java.util.ResourceBundle;
-import java.util.ResourceBundle.Control;
-import java.util.MissingResourceException;
 import sun.util.resources.LocaleData;
 
 public class LocaleDataTest
--- a/jdk/test/sun/util/locale/provider/Bug8038436.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/locale/provider/Bug8038436.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,15 +27,25 @@
  * @summary Test for changes in 8038436
  * @modules java.base/sun.util.locale.provider
  *          java.base/sun.util.spi
+ *          jdk.localedata
  * @compile -XDignore.symbol.file Bug8038436.java
  * @run main/othervm  --limit-modules java.base      Bug8038436  security
  * @run main/othervm  -Djava.locale.providers=COMPAT Bug8038436  availlocs
  */
 
-import java.security.*;
-import java.util.*;
-import java.util.stream.*;
-import sun.util.locale.provider.*;
+import java.security.CodeSource;
+import java.security.Permission;
+import java.security.PermissionCollection;
+import java.security.Permissions;
+import java.security.Policy;
+import java.security.ProtectionDomain;
+import java.util.Arrays;
+import java.util.Formatter;
+import java.util.GregorianCalendar;
+import java.util.List;
+import java.util.Locale;
+import java.util.stream.Collectors;
+import sun.util.locale.provider.LocaleProviderAdapter;
 
 public class Bug8038436 {
     public static void main(String[] args) {
--- a/jdk/test/sun/util/locale/provider/Bug8152817.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/locale/provider/Bug8152817.java	Wed Sep 14 11:22:38 2016 -0700
@@ -28,6 +28,7 @@
  * @bug 8152817
  * @summary Make sure that resource bundles in the jdk.localedata module are
  *          loaded under a security manager.
+ * @modules jdk.localedata
  * @run main/othervm -Djava.locale.providers=COMPAT
  *      -Djava.security.debug=access,failure,codebase=jrt:/jdk.localedata Bug8152817
  */
--- a/jdk/test/sun/util/resources/Calendar/Bug4518811.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/Calendar/Bug4518811.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,9 +22,10 @@
  */
 
 /*
- *@test
- *@bug 4518811
- *@summary Verifies the minimum days of the week for euro locales
+ * @test
+ * @bug 4518811
+ * @modules jdk.localedata
+ * @summary Verifies the minimum days of the week for euro locales
  */
 
 // this code is a bit brute-force, but I've been coding in nothing but Shell for the last year, so I'm rusty.
--- a/jdk/test/sun/util/resources/Calendar/Bug4527203.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/Calendar/Bug4527203.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test 1.1 11/02/01
  * @bug 4527203
+ * @modules jdk.localedata
  * @summary In Hungary and Ukraine first day of week is Monday not Sunday
  */
 
--- a/jdk/test/sun/util/resources/Locale/Bug4429024.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/Locale/Bug4429024.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -20,12 +20,13 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
-/**
-    @test
-    @summary checking localised language/country names in finnish
-    @bug 4429024 4964035 6558856 8008577
-    @run main/othervm -Djava.locale.providers=JRE,SPI Bug4429024
-*/
+/*
+ * @test
+ * @summary checking localised language/country names in finnish
+ * @modules jdk.localedata
+ * @bug 4429024 4964035 6558856 8008577
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4429024
+ */
 
 import java.util.Locale;
 
--- a/jdk/test/sun/util/resources/Locale/Bug4965260.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/Locale/Bug4965260.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -20,11 +20,12 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
-/**
- *@test
- *@bug 4965260 8008577
- *@summary Verifies the language name of "nl" for supported locales
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug4965260
+/*
+ * @test
+ * @bug 4965260 8008577
+ * @modules jdk.localedata
+ * @summary Verifies the language name of "nl" for supported locales
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4965260
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/Locale/Bug6275682.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/Locale/Bug6275682.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -21,10 +21,11 @@
  * questions.
  */
 
-/**
-    @test
-    @summary Verifying that the language names starts with lowercase in spanish
-    @bug 6275682
+/*
+ * @test
+ * @summary Verifying that the language names starts with lowercase in spanish
+ * @modules jdk.localedata
+ * @bug 6275682
 */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/TimeZone/Bug4938846.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/TimeZone/Bug4938846.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 4938846 8008577
- *@summary Test case for en_IE TimeZone info
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug4938846
+ * @test
+ * @bug 4938846 8008577
+ * @modules jdk.localedata
+ * @summary Test case for en_IE TimeZone info
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug4938846
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/TimeZone/Bug6271396.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/TimeZone/Bug6271396.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 6271396 8008577
- *@summary Test case for verifying typo of timezone display name Australia/Lord_Howe
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug6271396
+ * @test
+ * @bug 6271396 8008577
+ * @modules jdk.localedata
+ * @summary Test case for verifying typo of timezone display name Australia/Lord_Howe
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug6271396
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/TimeZone/Bug6317929.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/TimeZone/Bug6317929.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 6317929 6409419 8008577
- *@summary Test case for tzdata2005m support for 9 locales
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug6317929
+ * @test
+ * @bug 6317929 6409419 8008577
+ * @modules jdk.localedata
+ * @summary Test case for tzdata2005m support for 9 locales
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug6317929
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/TimeZone/Bug6377794.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/TimeZone/Bug6377794.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 6377794
- *@summary Test case for tzdata2005r support for 9 locales
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug6377794
+ * @test
+ * @bug 6377794
+ * @modules jdk.localedata
+ * @summary Test case for tzdata2005r support for 9 locales
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug6377794
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/TimeZone/Bug6442006.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/TimeZone/Bug6442006.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -22,10 +22,11 @@
  */
 
 /*
- *@test
- *@bug 6442006 8008577
- *@summary Test case for verifying timezone display name for Asia/Taipei
- *@run main/othervm -Djava.locale.providers=JRE,SPI Bug6442006
+ * @test
+ * @bug 6442006 8008577
+ * @modules jdk.localedata
+ * @summary Test case for verifying timezone display name for Asia/Taipei
+ * @run main/othervm -Djava.locale.providers=JRE,SPI Bug6442006
  */
 
 import java.util.Locale;
--- a/jdk/test/sun/util/resources/cldr/Bug8134250.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/cldr/Bug8134250.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -24,6 +24,7 @@
 /*
  * @test
  * @bug 8134250 8134520
+ * @modules jdk.localedata
  * @summary Tests CLDR/LDML features are correctly reflected in JDK.
  * @run main/othervm -Djava.locale.providers=CLDR Bug8134250
  */
@@ -31,10 +32,15 @@
 // Note this test highly depends on a particular version of CLDR. Results
 // may vary in the future.
 
-import java.time.*;
-import java.time.chrono.*;
-import java.time.format.*;
-import java.util.*;
+import java.time.LocalDate;
+import java.time.Month;
+import java.time.ZoneId;
+import java.time.chrono.Chronology;
+import java.time.format.DateTimeFormatter;
+import java.time.format.DateTimeFormatterBuilder;
+import java.time.format.FormatStyle;
+import java.time.format.TextStyle;
+import java.util.Locale;
 
 public class Bug8134250 {
     public static void main(String [] args) {
--- a/jdk/test/sun/util/resources/cldr/Bug8145136.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/sun/util/resources/cldr/Bug8145136.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,6 +25,7 @@
  /*
  * @test
  * @bug 8145136
+ * @modules jdk.localedata
  * @summary Tests CLDR 28/29 newly added feature LikelySubtags is correctly reflected in JDK.
  * @run main/othervm -Djava.locale.providers=CLDR Bug8145136
  */
--- a/jdk/test/tools/jlink/plugins/IncludeLocalesPluginTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/tools/jlink/plugins/IncludeLocalesPluginTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -126,11 +126,10 @@
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_es_419.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_es_AR.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_ja.class",
@@ -165,11 +164,10 @@
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_en_001.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_ja.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_zh.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_th.class",
@@ -206,11 +204,10 @@
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_en_150.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_en_AT.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
@@ -235,11 +232,10 @@
                 "/jdk.localedata/sun/util/resources/cldr/ext/CalendarData_kok_IN.class",
                 "/jdk.localedata/sun/util/resources/cldr/ext/CalendarData_pa_Guru_IN.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
@@ -261,11 +257,10 @@
             "--include-locales=th",
             "jdk.localedata",
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class"),
             List.of(
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
@@ -290,11 +285,10 @@
                 "/jdk.localedata/sun/text/resources/ext/FormatData_zh_TW.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_zh.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
@@ -318,11 +312,10 @@
                 "/jdk.localedata/sun/text/resources/ext/FormatData_zh_SG.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_zh.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
@@ -346,11 +339,10 @@
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_nb.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_nn.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
@@ -376,11 +368,10 @@
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_iw.class",
                 "/jdk.localedata/sun/text/resources/cldr/ext/FormatData_ji.class"),
             List.of(
-                "/jdk.localedata/sun/text/resources/LineBreakIteratorData_th",
-                "/jdk.localedata/sun/text/resources/thai_dict",
-                "/jdk.localedata/sun/text/resources/WordBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th",
+                "/jdk.localedata/sun/text/resources/ext/thai_dict",
+                "/jdk.localedata/sun/text/resources/ext/WordBreakIteratorData_th",
                 "/jdk.localedata/sun/text/resources/ext/BreakIteratorInfo_th.class",
-                "/jdk.localedata/sun/text/resources/ext/BreakIteratorRules_th.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_en_GB.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_ja.class",
                 "/jdk.localedata/sun/text/resources/ext/FormatData_th.class",
--- a/jdk/test/tools/pack200/Pack200Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/jdk/test/tools/pack200/Pack200Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -21,6 +21,14 @@
  * questions.
  */
 
+ /*
+  * @test
+  * @bug 6521334 6712743 8007902 8151901
+  * @summary test general packer/unpacker functionality
+  *          using native and java unpackers
+  * @compile -XDignore.symbol.file Utils.java Pack200Test.java
+  * @run main/othervm/timeout=1200 -Xmx1280m -Xshare:off Pack200Test
+  */
 
 import java.util.*;
 import java.io.*;
@@ -28,17 +36,6 @@
 import java.lang.management.MemoryMXBean;
 import java.util.jar.*;
 
- /*
-  * @test
-  * @bug 6521334 6712743 8007902
-  * @key intermittent
-  * @summary check for memory leaks, test general packer/unpacker functionality\
-  *          using native and java unpackers
-  * @compile -XDignore.symbol.file Utils.java Pack200Test.java
-  * @run main/othervm/timeout=1200 -Xmx1280m -Xshare:off Pack200Test
-  * @author ksrini
-  */
-
 /**
  * Tests the packing/unpacking via the APIs.
  */
@@ -48,6 +45,9 @@
     static final MemoryMXBean mmxbean = ManagementFactory.getMemoryMXBean();
     static final long m0 = getUsedMemory();
     static final int LEAK_TOLERANCE = 21000; // OS and GC related variations.
+    // enable leak checks only if required, GC charecteristics vary on
+    // platforms and this may not yield consistent results
+    static final boolean LEAK_CHECK = Boolean.getBoolean("Pack200Test.enableLeakCheck");
 
     /** Creates a new instance of Pack200Test */
     private Pack200Test() {}
@@ -60,9 +60,11 @@
     }
 
     private static void leakCheck() throws Exception {
+        if (!LEAK_CHECK)
+            return;
         long diff = getUsedMemory() - m0;
         System.out.println("  Info: memory diff = " + diff + "K");
-        if ( diff  > LEAK_TOLERANCE) {
+        if (diff > LEAK_TOLERANCE) {
             throw new Exception("memory leak detected " + diff);
         }
     }
@@ -126,7 +128,7 @@
     /**
      * @param args the command line arguments
      */
-    public static void main(String[] args) throws IOException {
+    public static void main(String[] args) throws Exception {
         // select the jars carefully, adding more jars will increase the
         // testing time, especially for jprt.
         jarList.add(Utils.createRtJar());
Binary file jdk/test/tools/pack200/pack200-verifier/data/golden.jar has changed
--- a/langtools/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -377,3 +377,4 @@
 2c17b65a37a8d7afdb9f96d5f11b28a3f21c78f2 jdk-9+132
 7efa4b3477b2b93edbdb4abf827b74c6391f056e jdk-9+133
 f08683786207a48b652266b3b7b908e6c863c3fc jdk-9+134
+af5eb8f3ffd21288305a54ea177ffad75021a741 jdk-9+135
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java	Wed Sep 14 11:22:38 2016 -0700
@@ -426,8 +426,8 @@
 
         verboseCompilePolicy = options.isSet("verboseCompilePolicy");
 
-        if (options.isSet("shouldstop.at") &&
-            CompileState.valueOf(options.get("shouldstop.at")) == CompileState.ATTR)
+        if (options.isSet("should-stop.at") &&
+            CompileState.valueOf(options.get("should-stop.at")) == CompileState.ATTR)
             compilePolicy = CompilePolicy.ATTR_ONLY;
         else
             compilePolicy = CompilePolicy.decode(options.get("compilePolicy"));
@@ -440,14 +440,14 @@
             : null;
 
         shouldStopPolicyIfError =
-            options.isSet("shouldstop.at") // backwards compatible
-            ? CompileState.valueOf(options.get("shouldstop.at"))
-            : options.isSet("shouldstop.ifError")
-            ? CompileState.valueOf(options.get("shouldstop.ifError"))
+            options.isSet("should-stop.at") // backwards compatible
+            ? CompileState.valueOf(options.get("should-stop.at"))
+            : options.isSet("should-stop.ifError")
+            ? CompileState.valueOf(options.get("should-stop.ifError"))
             : CompileState.INIT;
         shouldStopPolicyIfNoError =
-            options.isSet("shouldstop.ifNoError")
-            ? CompileState.valueOf(options.get("shouldstop.ifNoError"))
+            options.isSet("should-stop.ifNoError")
+            ? CompileState.valueOf(options.get("should-stop.ifNoError"))
             : CompileState.GENERATE;
 
         if (options.isUnset("diags.legacy"))
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/Option.java	Wed Sep 14 11:22:38 2016 -0700
@@ -509,33 +509,21 @@
 
     XDIAGS("-Xdiags:", "opt.diags", EXTENDED, BASIC, ONEOF, "compact", "verbose"),
 
-    XDEBUG("-Xdebug:", null, HIDDEN, BASIC) {
+    DEBUG("--debug:", null, HIDDEN, BASIC) {
         @Override
         public boolean process(OptionHelper helper, String option) {
-            String p = option.substring(option.indexOf(':') + 1).trim();
-            String[] subOptions = p.split(";");
-            for (String subOption : subOptions) {
-                subOption = "debug." + subOption.trim();
-                XD.process(helper, subOption, subOption);
-            }
-            return false;
+            return HiddenGroup.DEBUG.process(helper, option);
         }
     },
 
-    XSHOULDSTOP("-Xshouldstop:", null, HIDDEN, BASIC) {
+    SHOULDSTOP("--should-stop:", null, HIDDEN, BASIC) {
         @Override
         public boolean process(OptionHelper helper, String option) {
-            String p = option.substring(option.indexOf(':') + 1).trim();
-            String[] subOptions = p.split(";");
-            for (String subOption : subOptions) {
-                subOption = "shouldstop." + subOption.trim();
-                XD.process(helper, subOption, subOption);
-            }
-            return false;
+            return HiddenGroup.SHOULDSTOP.process(helper, option);
         }
     },
 
-    DIAGS("-diags:", null, HIDDEN, BASIC) {
+    DIAGS("--diags:", null, HIDDEN, BASIC) {
         @Override
         public boolean process(OptionHelper helper, String option) {
             return HiddenGroup.DIAGS.process(helper, option);
@@ -754,7 +742,12 @@
     }
 
     enum HiddenGroup {
-        DIAGS("diags");
+        DIAGS("diags"),
+        DEBUG("debug"),
+        SHOULDSTOP("should-stop");
+
+        static final Set<String> skipSet = new java.util.HashSet<>(
+                Arrays.asList("--diags:", "--debug:", "--should-stop:"));
 
         final String text;
 
@@ -771,6 +764,10 @@
             }
             return false;
         }
+
+        static boolean skip(String name) {
+            return skipSet.contains(name);
+        }
     }
 
     /**
@@ -930,7 +927,7 @@
     }
 
     private boolean matches(String option, String name) {
-        if (name.startsWith("--")) {
+        if (name.startsWith("--") && !HiddenGroup.skip(name)) {
             return option.equals(name)
                     || hasArg() && option.startsWith(name + "=");
         }
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/options/Options.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/options/Options.java	Wed Sep 14 11:22:38 2016 -0700
@@ -313,7 +313,7 @@
         }
 
         // Enable dependency generation
-        args.add("-Xdebug:completionDeps=source,class");
+        args.add("--debug:completionDeps=source,class");
 
         // This can't be anything but 'none'. Enforced by sjavac main method.
         args.add("-implicit:" + implicitPolicy);
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/ReplParser.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/ReplParser.java	Wed Sep 14 11:22:38 2016 -0700
@@ -95,24 +95,6 @@
             mods = modifiersOpt();
         }
 
-        if (token.kind == PACKAGE) {
-            int packagePos = token.pos;
-            List<JCAnnotation> annotations = List.nil();
-            seenPackage = true;
-            if (mods != null) {
-                checkNoMods(mods.flags);
-                annotations = mods.annotations;
-                mods = null;
-            }
-            nextToken();
-            JCExpression pid = qualident(false);
-            accept(SEMI);
-            JCPackageDecl pd = F.at(packagePos).PackageDecl(annotations, pid);
-            attach(pd, firstToken.comment(CommentStyle.JAVADOC));
-            storeEnd(pd, token.pos);
-            defs.append(pd);
-        }
-
         boolean firstTypeDecl = true;
         while (token.kind != EOF) {
             if (token.pos > 0 && token.pos <= endPosTable.errorEndPos) {
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java	Wed Sep 14 11:22:38 2016 -0700
@@ -838,8 +838,31 @@
     }
 
     private Stream<Element> localElements(Scope scope) {
-        @SuppressWarnings("unchecked")
-        Stream<Element> elements = Util.stream((Iterable<Element>)scope.getLocalElements());
+        //workaround for: JDK-8024687
+        Iterable<Element> elementsIt = () -> new Iterator<Element>() {
+            Iterator<? extends Element> it = scope.getLocalElements().iterator();
+            @Override
+            public boolean hasNext() {
+                while (true) {
+                    try {
+                        return it.hasNext();
+                    } catch (CompletionFailure cf) {
+                        //ignore...
+                    }
+                }
+            }
+            @Override
+            public Element next() {
+                while (true) {
+                    try {
+                        return it.next();
+                    } catch (CompletionFailure cf) {
+                        //ignore...
+                    }
+                }
+            }
+        };
+        Stream<Element> elements = Util.stream(elementsIt);
 
         if (scope.getEnclosingScope() != null &&
             scope.getEnclosingClass() != scope.getEnclosingScope().getEnclosingClass()) {
--- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/TaskFactory.java	Wed Sep 14 11:22:38 2016 -0700
@@ -222,7 +222,7 @@
             this(wraps.stream(),
                     new WrapSourceHandler(),
                     Util.join(new String[] {
-                        "-Xshouldstop:at=FLOW", "-Xlint:unchecked",
+                        "--should-stop:at=FLOW", "-Xlint:unchecked",
                         "-proc:none"
                     }, extraArgs));
         }
--- a/langtools/test/jdk/jshell/CompletionSuggestionTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/jdk/jshell/CompletionSuggestionTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -23,7 +23,7 @@
 
 /*
  * @test
- * @bug 8141092 8153761
+ * @bug 8131025 8141092 8153761
  * @summary Test Completion
  * @modules jdk.compiler/com.sun.tools.javac.api
  *          jdk.compiler/com.sun.tools.javac.main
@@ -610,4 +610,26 @@
         keepParameterNames.setAccessible(true);
         keepParameterNames.set(getAnalysis(), new String[0]);
     }
+
+    public void testBrokenClassFile2() throws IOException {
+        Path broken = outDir.resolve("broken");
+        compiler.compile(broken,
+                "package p;\n" +
+                "public class BrokenA {\n" +
+                "}",
+                "package p.q;\n" +
+                "public class BrokenB {\n" +
+                "}",
+                "package p;\n" +
+                "public class BrokenC {\n" +
+                "}");
+        Path cp = compiler.getPath(broken);
+        Path target = cp.resolve("p").resolve("BrokenB.class");
+        Files.deleteIfExists(target);
+        Files.move(cp.resolve("p").resolve("q").resolve("BrokenB.class"), target);
+        addToClasspath(cp);
+
+        assertEval("import p.*;");
+        assertCompletion("Broke|", "BrokenA", "BrokenC");
+    }
 }
--- a/langtools/test/jdk/jshell/RejectedFailedTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/jdk/jshell/RejectedFailedTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,7 @@
  */
 
 /*
- * @test
+ * @test 8080352
  * @summary Tests for hard errors, like syntax errors
  * @build KullaTesting
  * @run testng RejectedFailedTest
@@ -81,6 +81,7 @@
                 " a b c",
                 ")",
                 "class interface A",
+                "package foo;"
         };
         checkByKind(inputsErroneous, Kind.ERRONEOUS);
     }
--- a/langtools/test/tools/javac/ClassFileModifiers/ClassModifiers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/ClassFileModifiers/ClassModifiers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -28,7 +28,7 @@
  * file are correct, including those within InnerClasses attributes.
  * @author John Rose (jrose). Entered as a regression test by Bill Maddox (maddox).
  *
- * @compile/ref=ClassModifiers.out  -Xdebug:dumpmodifiers=ci ClassModifiers.java
+ * @compile/ref=ClassModifiers.out --debug:dumpmodifiers=ci ClassModifiers.java
  *
  */
 
--- a/langtools/test/tools/javac/ClassFileModifiers/MemberModifiers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/ClassFileModifiers/MemberModifiers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -26,7 +26,7 @@
  * @bug 4249112 4785453
  * @summary Verify that implicit member modifiers are set correctly.
  *
- * @compile/ref=MemberModifiers.out -Xdebug:dumpmodifiers=cfm MemberModifiers.java
+ * @compile/ref=MemberModifiers.out --debug:dumpmodifiers=cfm MemberModifiers.java
  */
 
 // Currently, we check only that members of final classes are not final.
--- a/langtools/test/tools/javac/Diagnostics/6722234/T6722234a.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6722234/T6722234a.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,8 +3,8 @@
  * @bug     6722234
  * @summary javac diagnostics need better integration with the type-system
  * @author  mcimadamore
- * @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars T6722234a.java
- * @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6722234a.java
+ * @compile/fail/ref=T6722234a_1.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars T6722234a.java
+ * @compile/fail/ref=T6722234a_2.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T6722234a.java
  */
 
 class T6722234a<T extends String> {
--- a/langtools/test/tools/javac/Diagnostics/6722234/T6722234b.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6722234/T6722234b.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,8 +3,8 @@
  * @bug     6722234 8078024
  * @summary javac diagnostics need better integration with the type-system
  * @author  mcimadamore
- * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics -diags:formatterOptions=simpleNames T6722234b.java
- * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics -diags:formatterOptions=simpleNames,where T6722234b.java
+ * @compile/fail/ref=T6722234b_1.out -XDrawDiagnostics --diags:formatterOptions=simpleNames T6722234b.java
+ * @compile/fail/ref=T6722234b_2.out -XDrawDiagnostics --diags:formatterOptions=simpleNames,where T6722234b.java
  */
 
 import java.util.*;
--- a/langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6722234/T6722234c.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug     6722234
  * @summary javac diagnostics need better integration with the type-system
  * @author  mcimadamore
- * @compile/fail/ref=T6722234c.out -XDrawDiagnostics -diags:formatterOptions=simpleNames T6722234c.java
+ * @compile/fail/ref=T6722234c.out -XDrawDiagnostics --diags:formatterOptions=simpleNames T6722234c.java
  */
 
 class T6722234c {
--- a/langtools/test/tools/javac/Diagnostics/6722234/T6722234d.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6722234/T6722234d.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,8 +3,8 @@
  * @bug     6722234 8078024
  * @summary javac diagnostics need better integration with the type-system
  * @author  mcimadamore
- * @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics -diags:formatterOptions=where T6722234d.java
- * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics -diags:formatterOptions=where,simpleNames T6722234d.java
+ * @compile/fail/ref=T6722234d_1.out -XDrawDiagnostics --diags:formatterOptions=where T6722234d.java
+ * @compile/fail/ref=T6722234d_2.out -XDrawDiagnostics --diags:formatterOptions=where,simpleNames T6722234d.java
  */
 
 class T6722234d {
--- a/langtools/test/tools/javac/Diagnostics/6862608/T6862608a.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6862608/T6862608a.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug     6862608
  * @summary rich diagnostic sometimes contain wrong type variable numbering
  * @author  mcimadamore
- * @compile/fail/ref=T6862608a.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6862608a.java
+ * @compile/fail/ref=T6862608a.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T6862608a.java
  */
 
 
--- a/langtools/test/tools/javac/Diagnostics/6862608/T6862608b.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/6862608/T6862608b.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug     6862608
  * @summary rich diagnostic sometimes contain wrong type variable numbering
  * @author  mcimadamore
- * @compile/fail/ref=T6862608b.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T6862608b.java
+ * @compile/fail/ref=T6862608b.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T6862608b.java
  */
 
 class T66862608b<T extends String, S> {
--- a/langtools/test/tools/javac/Diagnostics/7010608/Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/7010608/Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -46,9 +46,9 @@
         try {
             test(Arrays.<String>asList(),
                     "myfo://test:1: error: cannot find symbol");
-            test(Arrays.asList("-diags:layout=OLD"),
+            test(Arrays.asList("--diags:layout=OLD"),
                     "myfo://test:1: cannot find symbol");
-            test(Arrays.asList("-diags:legacy"),
+            test(Arrays.asList("--diags:legacy"),
                     "myfo://test:1: cannot find symbol");
         } finally {
             Locale.setDefault(prev);
--- a/langtools/test/tools/javac/Diagnostics/8010387/T8010387.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/Diagnostics/8010387/T8010387.java	Wed Sep 14 11:22:38 2016 -0700
@@ -2,7 +2,7 @@
  * @test /nodynamiccopyright/
  * @bug     8010387
  * @summary rich diagnostic sometimes contain wrong type variable numbering
- * @compile/fail/ref=T8010387.out -XDrawDiagnostics -diags:formatterOptions=disambiguateTvars,where T8010387.java
+ * @compile/fail/ref=T8010387.out -XDrawDiagnostics --diags:formatterOptions=disambiguateTvars,where T8010387.java
  */
 abstract class T8010387<X> {
 
--- a/langtools/test/tools/javac/InterfaceMemberClassModifiers.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/InterfaceMemberClassModifiers.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Verify that invalid access modifiers on interface members don't cause crash.
  * @author maddox
  *
- * @compile/fail/ref=InterfaceMemberClassModifiers.out -diags:layout=%b:%l:%_%m InterfaceMemberClassModifiers.java
+ * @compile/fail/ref=InterfaceMemberClassModifiers.out --diags:layout=%b:%l:%_%m InterfaceMemberClassModifiers.java
  */
 
 public interface InterfaceMemberClassModifiers {
--- a/langtools/test/tools/javac/T5003235/T5003235a.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/T5003235/T5003235a.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug     5003235
  * @summary Private inner class accessible from subclasses
  * @author  Peter von der Ah\u00e9
- * @compile/fail/ref=T5003235a.out -diags:layout=%b:%l:%_%m T5003235a.java
+ * @compile/fail/ref=T5003235a.out --diags:layout=%b:%l:%_%m T5003235a.java
  */
 
 class Super {
--- a/langtools/test/tools/javac/T5003235/T5003235b.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/T5003235/T5003235b.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug     5003235
  * @summary Accessibility of private inner class
  * @author  Peter von der Ah\u00e9
- * @compile/fail/ref=T5003235b.out -diags:layout=%b:%l:%_%m T5003235b.java
+ * @compile/fail/ref=T5003235b.out --diags:layout=%b:%l:%_%m T5003235b.java
  */
 
 class Outer {
--- a/langtools/test/tools/javac/T6214885.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/T6214885.java	Wed Sep 14 11:22:38 2016 -0700
@@ -2,8 +2,8 @@
  * @test  /nodynamiccopyright/
  * @bug 6214885
  * @summary This test exercises features provided by the new internal Diagnostics API
- * @compile/fail/ref=T6214885a.out -diags:layout=%b:%l%_%t%m|%p%m T6214885.java
- * @compile/fail/ref=T6214885b.out -diags:layout=%b:%l:%c%_%t%m|%p%m T6214885.java
+ * @compile/fail/ref=T6214885a.out --diags:layout=%b:%l%_%t%m|%p%m T6214885.java
+ * @compile/fail/ref=T6214885b.out --diags:layout=%b:%l:%c%_%t%m|%p%m T6214885.java
  */
 class T6214885
 {
--- a/langtools/test/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -2,7 +2,7 @@
  * @test /nodynamiccopyright/
  * @bug 8026963
  * @summary type annotations code crashes for lambdas with void argument
- * @compile/fail/ref=TypeAnnotationsCrashWithErroneousTreeTest.out -XDrawDiagnostics -Xshouldstop:at=FLOW TypeAnnotationsCrashWithErroneousTreeTest.java
+ * @compile/fail/ref=TypeAnnotationsCrashWithErroneousTreeTest.out -XDrawDiagnostics --should-stop:at=FLOW TypeAnnotationsCrashWithErroneousTreeTest.java
  */
 
 public class TypeAnnotationsCrashWithErroneousTreeTest {
--- a/langtools/test/tools/javac/annotations/neg/8022765/VerifyErroneousAnnotationsAttributed.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/annotations/neg/8022765/VerifyErroneousAnnotationsAttributed.java	Wed Sep 14 11:22:38 2016 -0700
@@ -237,7 +237,7 @@
         JavacTask task = tool.getTask(null,
                                       fm,
                                       devNull,
-                                      Arrays.asList("-Xshouldstop:at=FLOW"),
+                                      Arrays.asList("--should-stop:at=FLOW"),
                                       null,
                                       Arrays.asList(new MyFileObject(code)));
 
--- a/langtools/test/tools/javac/annotations/typeAnnotations/newlocations/AfterMethodTypeParams.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/annotations/typeAnnotations/newlocations/AfterMethodTypeParams.java	Wed Sep 14 11:22:38 2016 -0700
@@ -54,7 +54,7 @@
             String test = TEMPLATE.replace("CONTENT", tc.snippet);
             List<JavaFileObject> files = Arrays.asList(new MyFileObject(test));
             StringWriter out = new StringWriter();
-            List<String> options = Arrays.asList("-XDrawDiagnostics", "-Xshouldstop:at=FLOW");
+            List<String> options = Arrays.asList("-XDrawDiagnostics", "--should-stop:at=FLOW");
             JavacTask task = (JavacTask) compiler.getTask(out, null, null, options, null, files);
 
             new TreePathScanner<Void, Void>() {
--- a/langtools/test/tools/javac/api/6731573/T6731573.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/api/6731573/T6731573.java	Wed Sep 14 11:22:38 2016 -0700
@@ -62,8 +62,8 @@
 
     enum SourceLine {
         STANDARD(null),
-        ENABLED("-diags:showSource=true"),
-        DISABLED("-diags:showSource=false");
+        ENABLED("--diags:showSource=true"),
+        DISABLED("--diags:showSource=false");
 
         String optValue;
 
--- a/langtools/test/tools/javac/api/taskListeners/EventsBalancedTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/api/taskListeners/EventsBalancedTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -63,11 +63,11 @@
         test(null, Arrays.asList(b, a));
 
         for (CompileState stop : CompileState.values()) {
-            test(Arrays.asList("-Xshouldstop:ifNoError=" + stop,
-                               "-Xshouldstop:ifError=" + stop),
+            test(Arrays.asList("--should-stop:ifNoError=" + stop,
+                               "--should-stop:ifError=" + stop),
                  Arrays.asList(a, b));
-            test(Arrays.asList("-Xshouldstop:ifNoError=" + stop,
-                               "-Xshouldstop:ifError=" + stop),
+            test(Arrays.asList("--should-stop:ifNoError=" + stop,
+                               "--should-stop:ifError=" + stop),
                  Arrays.asList(b, a));
         }
     }
--- a/langtools/test/tools/javac/completionDeps/DepsAndAnno.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/completionDeps/DepsAndAnno.java	Wed Sep 14 11:22:38 2016 -0700
@@ -47,7 +47,7 @@
     public static void main(String[] args) {
         ToolBox toolBox = new ToolBox();
         new JavacTask(toolBox, Task.Mode.CMDLINE)
-               .options("-Xdebug:completionDeps")
+               .options("--debug:completionDeps")
                .outdir(".")
                .files(ToolBox.testSrc + "/DepsAndAnno.java")
                .run();
--- a/langtools/test/tools/javac/completionDeps/DepsAndDocLint.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/completionDeps/DepsAndDocLint.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,7 +25,7 @@
  * @test
  * @bug 8078389
  * @summary Make sure there is no interference between completionDeps and doclint
- * @compile -Xdebug:completionDeps -Xdoclint DepsAndDocLint.java
+ * @compile --debug:completionDeps -Xdoclint DepsAndDocLint.java
  */
 
 public class DepsAndDocLint {
--- a/langtools/test/tools/javac/diags/CheckResourceKeys.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/CheckResourceKeys.java	Wed Sep 14 11:22:38 2016 -0700
@@ -260,8 +260,8 @@
                 // ignore debug flag names
                 if (cs.startsWith("debug."))
                     continue;
-                // ignore shouldstop flag names
-                if (cs.startsWith("shouldstop."))
+                // ignore should-stop flag names
+                if (cs.startsWith("should-stop."))
                     continue;
                 // ignore diagsformat flag names
                 if (cs.startsWith("diags."))
--- a/langtools/test/tools/javac/diags/examples/ApplicableMethodFound.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/ApplicableMethodFound.java	Wed Sep 14 11:22:38 2016 -0700
@@ -23,7 +23,7 @@
 
 // key: compiler.misc.applicable.method.found
 // key: compiler.note.verbose.resolve.multi
-// options: -Xdebug:verboseResolution=applicable,success
+// options: --debug:verboseResolution=applicable,success
 
 class ApplicableMethodFound {
 
--- a/langtools/test/tools/javac/diags/examples/ApplicableMethodFound1.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/ApplicableMethodFound1.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,7 +24,7 @@
 // key: compiler.misc.applicable.method.found.1
 // key: compiler.note.verbose.resolve.multi
 // key: compiler.misc.partial.inst.sig
-// options: -Xdebug:verboseResolution=applicable,success
+// options: --debug:verboseResolution=applicable,success
 
 class ApplicableMethodFound1 {
 
--- a/langtools/test/tools/javac/diags/examples/DeferredMethodInst.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/DeferredMethodInst.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,7 +25,7 @@
 // key: compiler.note.verbose.resolve.multi
 // key: compiler.note.deferred.method.inst
 // key: compiler.misc.partial.inst.sig
-// options: -Xdebug:verboseResolution=applicable,success,deferred-inference
+// options: --debug:verboseResolution=applicable,success,deferred-inference
 
 class DeferredMethodInst {
 
--- a/langtools/test/tools/javac/diags/examples/LambdaStat.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/LambdaStat.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,7 @@
  */
 
 // key: compiler.note.lambda.stat
-// options: -Xdebug:dumpLambdaToMethodStats
+// options: --debug:dumpLambdaToMethodStats
 
 class LambdaStat {
     Runnable r = ()->{};
--- a/langtools/test/tools/javac/diags/examples/MrefStat.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/MrefStat.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,7 @@
  */
 
 // key: compiler.note.mref.stat
-// options: -Xdebug:dumpLambdaToMethodStats
+// options: --debug:dumpLambdaToMethodStats
 
 class MrefStat {
     Runnable r = MrefStat::m;
--- a/langtools/test/tools/javac/diags/examples/MrefStat1.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/MrefStat1.java	Wed Sep 14 11:22:38 2016 -0700
@@ -22,7 +22,7 @@
  */
 
 // key: compiler.note.mref.stat.1
-// options: -Xdebug:dumpLambdaToMethodStats
+// options: --debug:dumpLambdaToMethodStats
 
 class MrefStat1 {
 
--- a/langtools/test/tools/javac/diags/examples/NotApplicableMethodFound.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/NotApplicableMethodFound.java	Wed Sep 14 11:22:38 2016 -0700
@@ -26,7 +26,7 @@
 // key: compiler.err.cant.apply.symbol
 // key: compiler.misc.no.conforming.assignment.exists
 // key: compiler.misc.inconvertible.types
-// options: -Xdebug:verboseResolution=inapplicable,failure
+// options: --debug:verboseResolution=inapplicable,failure
 
 class NotApplicableMethodFound {
 
--- a/langtools/test/tools/javac/diags/examples/PartialInstSig.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/PartialInstSig.java	Wed Sep 14 11:22:38 2016 -0700
@@ -24,7 +24,7 @@
 // key: compiler.misc.applicable.method.found.1
 // key: compiler.note.verbose.resolve.multi
 // key: compiler.misc.partial.inst.sig
-// options: -Xdebug:verboseResolution=applicable,success
+// options: --debug:verboseResolution=applicable,success
 
 class PartialInstSig {
 
--- a/langtools/test/tools/javac/diags/examples/VerboseResolveMulti.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/VerboseResolveMulti.java	Wed Sep 14 11:22:38 2016 -0700
@@ -23,7 +23,7 @@
 
 // key: compiler.misc.applicable.method.found
 // key: compiler.note.verbose.resolve.multi
-// options: -Xdebug:verboseResolution=applicable,success
+// options: --debug:verboseResolution=applicable,success
 
 class VerboseResolveMulti {
 
--- a/langtools/test/tools/javac/diags/examples/VerboseResolveMulti1.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/VerboseResolveMulti1.java	Wed Sep 14 11:22:38 2016 -0700
@@ -26,7 +26,7 @@
 // key: compiler.err.cant.apply.symbol
 // key: compiler.misc.no.conforming.assignment.exists
 // key: compiler.misc.inconvertible.types
-// options: -Xdebug:verboseResolution=inapplicable,failure
+// options: --debug:verboseResolution=inapplicable,failure
 
 class VerboseResolveMulti1 {
 
--- a/langtools/test/tools/javac/diags/examples/WhereCaptured.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereCaptured.java	Wed Sep 14 11:22:38 2016 -0700
@@ -28,7 +28,7 @@
 // key: compiler.err.cant.apply.symbol
 // key: compiler.misc.incompatible.eq.bounds
 // key: compiler.misc.captured.type
-// options: -diags:formatterOptions=where,simpleNames
+// options: --diags:formatterOptions=where,simpleNames
 // run: simple
 
 import java.util.*;
--- a/langtools/test/tools/javac/diags/examples/WhereCaptured1.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereCaptured1.java	Wed Sep 14 11:22:38 2016 -0700
@@ -29,7 +29,7 @@
 // key: compiler.misc.incompatible.eq.bounds
 // key: compiler.misc.captured.type
 // key: compiler.misc.type.null
-// options: -diags:formatterOptions=where,simpleNames
+// options: --diags:formatterOptions=where,simpleNames
 // run: simple
 
 import java.util.*;
--- a/langtools/test/tools/javac/diags/examples/WhereFreshTvar.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereFreshTvar.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,7 +25,7 @@
 // key: compiler.misc.where.description.typevar
 // key: compiler.err.prob.found.req
 // key: compiler.misc.inconvertible.types
-// options: -diags:formatterOptions=where,simpleNames
+// options: --diags:formatterOptions=where,simpleNames
 // run: simple
 
 import java.util.*;
--- a/langtools/test/tools/javac/diags/examples/WhereIntersection.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereIntersection.java	Wed Sep 14 11:22:38 2016 -0700
@@ -26,7 +26,7 @@
 // key: compiler.misc.where.description.intersection.1
 // key: compiler.misc.where.intersection
 // key: compiler.err.prob.found.req
-// options: -diags:formatterOptions=where
+// options: --diags:formatterOptions=where
 // run: simple
 
 class WhereIntersection {
--- a/langtools/test/tools/javac/diags/examples/WhereIntersection2.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereIntersection2.java	Wed Sep 14 11:22:38 2016 -0700
@@ -29,7 +29,7 @@
 // key: compiler.misc.where.description.intersection
 // key: compiler.misc.where.intersection
 // key: compiler.err.prob.found.req
-// options: -diags:formatterOptions=where
+// options: --diags:formatterOptions=where
 // run: simple
 
 class WhereIntersection2 {
--- a/langtools/test/tools/javac/diags/examples/WhereTypeVar.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereTypeVar.java	Wed Sep 14 11:22:38 2016 -0700
@@ -27,7 +27,7 @@
 // key: compiler.err.cant.apply.symbol
 // key: compiler.misc.no.conforming.assignment.exists
 // key: compiler.misc.inconvertible.types
-// options: -diags:formatterOptions=where,disambiguateTvars
+// options: --diags:formatterOptions=where,disambiguateTvars
 // run: simple
 
 class WhereTypeVar<T extends String> {
--- a/langtools/test/tools/javac/diags/examples/WhereTypeVar2.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/diags/examples/WhereTypeVar2.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,7 +25,7 @@
 // key: compiler.misc.where.description.typevar
 // key: compiler.misc.where.typevar
 // key: compiler.err.prob.found.req
-// options: -diags:formatterOptions=where
+// options: --diags:formatterOptions=where
 // run: simple
 
 class WhereTypeVar2 {
--- a/langtools/test/tools/javac/failover/CheckAttributedTree.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/CheckAttributedTree.java	Wed Sep 14 11:22:38 2016 -0700
@@ -311,7 +311,7 @@
                 final List<CompilationUnitTree> trees = new ArrayList<>();
                 Iterable<? extends Element> elems = newCompilationTask()
                     .withWriter(pw)
-                        .withOption("-Xshouldstop:at=ATTR")
+                        .withOption("--should-stop:at=ATTR")
                         .withOption("-XDverboseCompilePolicy")
                         .withSource(files.iterator().next())
                         .withListener(new TaskListener() {
--- a/langtools/test/tools/javac/failover/FailOver01.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver01.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver01.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver01.java
+ * @compile/fail/ref=FailOver01.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver01.java
  */
 
 class Test { { x = "" } }
--- a/langtools/test/tools/javac/failover/FailOver02.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver02.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver02.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver02.java
+ * @compile/fail/ref=FailOver02.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver02.java
  */
 
 class Test implements AutoCloseable {
--- a/langtools/test/tools/javac/failover/FailOver03.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver03.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver03.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver03.java
+ * @compile/fail/ref=FailOver03.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver03.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver04.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver04.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver04.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver04.java
+ * @compile/fail/ref=FailOver04.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver04.java
  */
 
 class Test {
--- a/langtools/test/tools/javac/failover/FailOver05.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver05.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver05.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver05.java
+ * @compile/fail/ref=FailOver05.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver05.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver06.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver06.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver06.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver06.java
+ * @compile/fail/ref=FailOver06.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver06.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver07.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver07.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver07.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver07.java
+ * @compile/fail/ref=FailOver07.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver07.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver08.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver08.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver08.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver08.java
+ * @compile/fail/ref=FailOver08.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver08.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver09.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver09.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver09.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver09.java
+ * @compile/fail/ref=FailOver09.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver09.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver10.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver10.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver10.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver10.java
+ * @compile/fail/ref=FailOver10.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver10.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver11.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver11.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver11.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver11.java
+ * @compile/fail/ref=FailOver11.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver11.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver12.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver12.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver12.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver12.java
+ * @compile/fail/ref=FailOver12.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver12.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver13.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver13.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver13.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver13.java
+ * @compile/fail/ref=FailOver13.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver13.java
  */
 
 class Test extends Test {
--- a/langtools/test/tools/javac/failover/FailOver14.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver14.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Flow.java should be more error-friendly
  * @author mcimadamore
  *
- * @compile/fail/ref=FailOver14.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver14.java
+ * @compile/fail/ref=FailOver14.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver14.java
  */
 
 class Test extends Test  {
--- a/langtools/test/tools/javac/failover/FailOver15.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/failover/FailOver15.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug 6970584 7060926
  * @summary Attr.PostAttrAnalyzer misses a case
  *
- * @compile/fail/ref=FailOver15.out -XDrawDiagnostics -Xshouldstop:at=FLOW -XDdev FailOver15.java
+ * @compile/fail/ref=FailOver15.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver15.java
  */
 
 class Test {
--- a/langtools/test/tools/javac/generics/inference/8158355/T8158355.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/generics/inference/8158355/T8158355.java	Wed Sep 14 11:22:38 2016 -0700
@@ -27,7 +27,7 @@
  * @test
  * @bug 8158355
  * @summary Inference graph dot support broken
- * @compile -Xdebug:dumpInferenceGraphsTo=. T8158355.java
+ * @compile --debug:dumpInferenceGraphsTo=. T8158355.java
  */
 import java.util.List;
 
--- a/langtools/test/tools/javac/lambda/MostSpecific09.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/MostSpecific09.java	Wed Sep 14 11:22:38 2016 -0700
@@ -2,7 +2,7 @@
  * @test /nodynamiccopyright/
  * @bug 8029718
  * @summary Should always use lambda body structure to disambiguate overload resolution
- * @compile/fail/ref=MostSpecific09.out -XDrawDiagnostics -Xshouldstop:at=ATTR -Xdebug:verboseResolution=applicable,success MostSpecific09.java
+ * @compile/fail/ref=MostSpecific09.out -XDrawDiagnostics --should-stop:at=ATTR --debug:verboseResolution=applicable,success MostSpecific09.java
  */
 
 class MostSpecific09 {
--- a/langtools/test/tools/javac/lambda/MostSpecific09.out	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/MostSpecific09.out	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
 MostSpecific09.java:27:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.J), null)}
 MostSpecific09.java:27:32: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
 MostSpecific09.java:28:13: compiler.err.lambda.body.neither.value.nor.void.compatible
-MostSpecific09.java:28:9: compiler.err.cant.apply.symbols: kindname.method, foo, @681,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
+MostSpecific09.java:28:9: compiler.err.cant.apply.symbols: kindname.method, foo, @682,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
 MostSpecific09.java:28:43: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
 MostSpecific09.java:29:9: compiler.err.ref.ambiguous: foo, kindname.method, foo(MostSpecific09.I), MostSpecific09, kindname.method, foo(MostSpecific09.J), MostSpecific09
 MostSpecific09.java:29:28: compiler.note.verbose.resolve.multi: <init>, java.lang.RuntimeException, 0, BASIC, compiler.misc.no.args, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, java.lang.RuntimeException(), null)}
@@ -11,7 +11,7 @@
 MostSpecific09.java:32:9: compiler.err.ref.ambiguous: foo, kindname.method, foo(MostSpecific09.I), MostSpecific09, kindname.method, foo(MostSpecific09.J), MostSpecific09
 MostSpecific09.java:33:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.I), null)}
 MostSpecific09.java:42:13: compiler.err.lambda.body.neither.value.nor.void.compatible
-MostSpecific09.java:42:9: compiler.err.cant.apply.symbols: kindname.method, foo, @1130,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
+MostSpecific09.java:42:9: compiler.err.cant.apply.symbols: kindname.method, foo, @1131,{(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.I), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.incompatible.ret.type.in.lambda: (compiler.misc.missing.ret.val: java.lang.String)))),(compiler.misc.inapplicable.method: kindname.method, MostSpecific09, foo(MostSpecific09.J), (compiler.misc.no.conforming.assignment.exists: (compiler.misc.unexpected.ret.val)))}
 MostSpecific09.java:46:23: compiler.note.verbose.resolve.multi: println, java.io.PrintStream, 1, BASIC, java.lang.String, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, println(java.lang.Object), null),(compiler.misc.applicable.method.found: 1, println(java.lang.String), null)}
 MostSpecific09.java:49:9: compiler.note.verbose.resolve.multi: foo, MostSpecific09, 0, BASIC, compiler.misc.type.none, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, foo(MostSpecific09.J), null)}
 MostSpecific09.java:56:25: compiler.note.verbose.resolve.multi: <init>, Bar, 0, BASIC, compiler.misc.no.args, compiler.misc.no.args,{(compiler.misc.applicable.method.found: 0, Bar(), null)}
--- a/langtools/test/tools/javac/lambda/TestLambdaToMethodStats.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/TestLambdaToMethodStats.java	Wed Sep 14 11:22:38 2016 -0700
@@ -122,7 +122,7 @@
     @Override
     public void doWork() throws IOException {
         check(newCompilationTask()
-                .withOption("-Xdebug:dumpLambdaToMethodStats")
+                .withOption("--debug:dumpLambdaToMethodStats")
                 .withSourceFromTemplate(template)
                 .generate());
     }
--- a/langtools/test/tools/javac/lambda/XDdumpLambdaToMethodStats.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/XDdumpLambdaToMethodStats.java	Wed Sep 14 11:22:38 2016 -0700
@@ -25,7 +25,7 @@
  * @test
  * @bug 8143217
  * @summary javac throws NPE when printing diagnostics for Lambda expressions
- * @compile XDdumpLambdaToMethodStats.java -Xdebug:dumpLambdaToMethodStats
+ * @compile XDdumpLambdaToMethodStats.java --debug:dumpLambdaToMethodStats
  *
  */
 
--- a/langtools/test/tools/javac/lambda/bridge/TestMetafactoryBridges.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/bridge/TestMetafactoryBridges.java	Wed Sep 14 11:22:38 2016 -0700
@@ -274,7 +274,7 @@
             sourcefiles.add(new JavaSource(ck));
         }
         JavacTask ct = (JavacTask)tool.getTask(debugWriter, null, diagChecker,
-                    Arrays.asList("-Xdebug:dumpLambdaToMethodStats", "-d", outDir.getAbsolutePath(),
+                    Arrays.asList("--debug:dumpLambdaToMethodStats", "-d", outDir.getAbsolutePath(),
                                   "-sourcepath", srcDir.getAbsolutePath(),
                                   "-classpath", classesDir.getAbsolutePath(),
                                   pp.preferOpt), null, sourcefiles);
--- a/langtools/test/tools/javac/lambda/mostSpecific/StructuralMostSpecificTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/lambda/mostSpecific/StructuralMostSpecificTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -210,7 +210,7 @@
     public void doWork() throws Throwable {
         check(newCompilationTask()
                 .withSourceFromTemplate(sourceTemplate)
-                .withOption("-Xdebug:verboseResolution=all,-predef,-internal,-object-init")
+                .withOption("--debug:verboseResolution=all,-predef,-internal,-object-init")
                 .analyze());
     }
 
--- a/langtools/test/tools/javac/missingSuperRecovery/MissingSuperRecovery.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/missingSuperRecovery/MissingSuperRecovery.java	Wed Sep 14 11:22:38 2016 -0700
@@ -5,7 +5,7 @@
  * class is no longer available during a subsequent compilation.
  * @author maddox
  * @build impl
- * @compile/fail/ref=MissingSuperRecovery.out -diags:layout=%b:%l:%_%m MissingSuperRecovery.java
+ * @compile/fail/ref=MissingSuperRecovery.out --diags:layout=%b:%l:%_%m MissingSuperRecovery.java
  */
 
 // Requires "golden" class file 'impl.class', which contains
--- a/langtools/test/tools/javac/modules/AddLimitMods.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/modules/AddLimitMods.java	Wed Sep 14 11:22:38 2016 -0700
@@ -119,7 +119,7 @@
         //real test
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "java.base")
                 .outdir(modulePath)
                 .files(findJavaFiles(m1))
@@ -128,7 +128,7 @@
 
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "java.base",
                          "--add-modules", "m2")
                 .outdir(modulePath)
@@ -138,7 +138,7 @@
 
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "java.base",
                          "--add-modules", "m2,m3")
                 .outdir(modulePath)
@@ -148,7 +148,7 @@
 
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "m2")
                 .outdir(modulePath)
                 .files(findJavaFiles(m1))
@@ -157,7 +157,7 @@
 
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "m3")
                 .outdir(modulePath)
                 .files(findJavaFiles(m1))
@@ -166,7 +166,7 @@
 
         new JavacTask(tb)
                 .options("--module-path", modulePath.toString(),
-                         "-Xshouldstop:ifNoError=FLOW",
+                         "--should-stop:ifNoError=FLOW",
                          "--limit-modules", "m3",
                          "--add-modules", "m2")
                 .outdir(modulePath)
@@ -473,7 +473,7 @@
                                            auxOptions,
                                            "--module-path", modulePath.toString(),
                                            "--class-path", classpathOut.toString(),
-                                           "-Xshouldstop:ifNoError=FLOW"))
+                                           "--should-stop:ifNoError=FLOW"))
                    .outdir(modulePath)
                    .files(findJavaFiles(m2))
                    .run(success ? Task.Expect.SUCCESS : Task.Expect.FAIL)
--- a/langtools/test/tools/javac/policy/test3/Test.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/policy/test3/Test.java	Wed Sep 14 11:22:38 2016 -0700
@@ -30,7 +30,7 @@
 import java.io.*;
 import java.util.*;
 
-// Simple test of -Xshouldstop:at.
+// Simple test of --should-stop:at.
 // For each of the permissable values, we compile a file with an error in it,
 // then using -XDverboseCompilePolicy we check that the compilation gets as
 // far as expected, but no further.
@@ -83,7 +83,7 @@
         args.add("-d");
         args.add(".");
         if (ssp.needOption)
-            args.add("-Xshouldstop:at=" + ssp);
+            args.add("--should-stop:at=" + ssp);
         args.add(new File(System.getProperty("test.src", "."), "A.java").getPath());
 
         StringWriter sw = new StringWriter();
--- a/langtools/test/tools/javac/positions/TreeEndPosTest.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/positions/TreeEndPosTest.java	Wed Sep 14 11:22:38 2016 -0700
@@ -145,7 +145,7 @@
             options.add(tempDir.getPath());
             options.add("-d");
             options.add(tempDir.getPath());
-            options.add("-Xshouldstop:at=GENERATE");
+            options.add("--should-stop:at=GENERATE");
 
             List<JavaFileObject> sources = new ArrayList<>();
             sources.add(src);
--- a/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess2.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess2.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Verify correct implementation of JLS2e 6.6.2.1
  * @author maddox
  *
- * @compile/fail/ref=ProtectedMemberAccess2.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess2.java
+ * @compile/fail/ref=ProtectedMemberAccess2.out --diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess2.java
  */
 
 // 71 errors expected.
--- a/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess3.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess3.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Verify correct implementation of JLS2e 6.6.2.1
  * @author maddox
  *
- * @compile/fail/ref=ProtectedMemberAccess3.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess3.java
+ * @compile/fail/ref=ProtectedMemberAccess3.out --diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess3.java
  */
 
 // 46 errors expected.
--- a/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess4.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/protectedAccess/ProtectedMemberAccess4.java	Wed Sep 14 11:22:38 2016 -0700
@@ -4,7 +4,7 @@
  * @summary Verify correct implementation of JLS2e 6.6.2.1
  * @author maddox
  *
- * @compile/fail/ref=ProtectedMemberAccess4.out -diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess4.java
+ * @compile/fail/ref=ProtectedMemberAccess4.out --diags:formatterOptions=-simpleNames;layout=%b:%l:%_%m ProtectedMemberAccess4.java
  */
 
 // 33 errors expected.
--- a/langtools/test/tools/javac/resolve/ResolveHarness.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/resolve/ResolveHarness.java	Wed Sep 14 11:22:38 2016 -0700
@@ -132,8 +132,8 @@
 
     protected void check() throws Exception {
         String[] options = {
-            "-Xshouldstop:at=ATTR",
-            "-Xdebug:verboseResolution=success,failure,applicable,inapplicable,deferred-inference,predef"
+            "--should-stop:at=ATTR",
+            "--debug:verboseResolution=success,failure,applicable,inapplicable,deferred-inference,predef"
         };
 
         AbstractProcessor[] processors = { new ResolveCandidateFinder(), null };
--- a/langtools/test/tools/javac/unicode/UnicodeNewline.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/javac/unicode/UnicodeNewline.java	Wed Sep 14 11:22:38 2016 -0700
@@ -3,7 +3,7 @@
  * @bug 4739428 4785453
  * @summary when \u000a is used, diagnostics are reported on the wrong line.
  *
- * @compile/fail/ref=UnicodeNewline.out -diags:layout=%b:%l:%_%m UnicodeNewline.java
+ * @compile/fail/ref=UnicodeNewline.out --diags:layout=%b:%l:%_%m UnicodeNewline.java
  */
 
 class UnicodeNewline {
--- a/langtools/test/tools/sjavac/JavacOptionPrep.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/langtools/test/tools/sjavac/JavacOptionPrep.java	Wed Sep 14 11:22:38 2016 -0700
@@ -96,7 +96,7 @@
 
             // Ignore this option for now. When the file=... requirement goes
             // away, this will be easier to handle.
-            if (option.startsWith("-Xdebug:completionDeps"))
+            if (option.startsWith("--debug:completionDeps"))
                 continue;
 
             switch (option) {
--- a/make/CompileJavaModules.gmk	Sat Sep 10 12:18:30 2016 -0700
+++ b/make/CompileJavaModules.gmk	Wed Sep 14 11:22:38 2016 -0700
@@ -458,7 +458,7 @@
 jdk.localedata_COPY := _dict _th
 # Exclude BreakIterator classes that are just used in compile process to generate
 # data files and shouldn't go in the product
-jdk.localedata_EXCLUDE_FILES += sun/text/resources/th/BreakIteratorRules_th.java
+jdk.localedata_EXCLUDE_FILES += sun/text/resources/ext/BreakIteratorRules_th.java
 
 ################################################################################
 # Setup the compilation for the module
--- a/make/CreateJmods.gmk	Sat Sep 10 12:18:30 2016 -0700
+++ b/make/CreateJmods.gmk	Wed Sep 14 11:22:38 2016 -0700
@@ -82,14 +82,6 @@
   endif
 endif
 
-ifeq ($(MODULE), jdk.scripting.nashorn.shell)
-  JMOD_FLAGS += --main-class jdk.nashorn.tools.jjs.Main
-endif
-
-ifeq ($(MODULE), jdk.scripting.nashorn)
-  JMOD_FLAGS += --main-class jdk.nashorn.tools.Shell
-endif
-
 # Changes to the jmod tool itself should also trigger a rebuild of all jmods.
 # The variable JMOD_CMD could contain an environment variable assignment before
 # the actual command. Filter that out using wildcard before adding to DEPS.
--- a/make/Images.gmk	Sat Sep 10 12:18:30 2016 -0700
+++ b/make/Images.gmk	Wed Sep 14 11:22:38 2016 -0700
@@ -75,11 +75,6 @@
 
 # Param 1 - The file containing the MODULES list
 define create-info-file
-  $(call info-file-item, "JAVA_VERSION", "$(VERSION_NUMBER)")
-  $(call info-file-item, "JAVA_FULL_VERSION", "$(VERSION_STRING)")
-  $(call info-file-item, "OS_NAME", "$(REQUIRED_OS_NAME)")
-  $(call info-file-item, "OS_VERSION", "$(REQUIRED_OS_VERSION)")
-  $(call info-file-item, "OS_ARCH", "$(OPENJDK_TARGET_CPU_LEGACY)")
   $(if $(JDK_ARCH_ABI_PROP_NAME), \
     $(call info-file-item, "SUN_ARCH_ABI", "$(JDK_ARCH_ABI_PROP_NAME)"))
   $(call info-file-item, "SOURCE", "$(strip $(ALL_SOURCE_TIPS))")
--- a/nashorn/.hgtags	Sat Sep 10 12:18:30 2016 -0700
+++ b/nashorn/.hgtags	Wed Sep 14 11:22:38 2016 -0700
@@ -368,3 +368,4 @@
 55a75af751dfe44039baef2b762ee7347021025b jdk-9+132
 3a924b820d02b108cf57b51e145b5150d1eedcca jdk-9+133
 e05400ba935753c77697af936db24657eb811022 jdk-9+134
+cb00d5ef023a18a66fcb4311ed4474d4145c66e9 jdk-9+135
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptFunction.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptFunction.java	Wed Sep 14 11:22:38 2016 -0700
@@ -1273,7 +1273,11 @@
         // a new zeroth element that is set to bindName value.
         final MethodType methodType = methodHandle.type();
         final int parameterCount = methodType.parameterCount();
-        final boolean isVarArg = parameterCount > 0 && methodType.parameterType(parameterCount - 1).isArray();
+
+        if (parameterCount < 2) {
+            return methodHandle; // method does not have enough parameters
+        }
+        final boolean isVarArg = methodType.parameterType(parameterCount - 1).isArray();
 
         if (isVarArg) {
             return MH.filterArguments(methodHandle, 1, MH.insertArguments(ADD_ZEROTH_ELEMENT, 1, bindName));
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptObject.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptObject.java	Wed Sep 14 11:22:38 2016 -0700
@@ -2172,6 +2172,21 @@
         return switchPoints.toArray(new SwitchPoint[0]);
     }
 
+    // Similar to getProtoSwitchPoints method above, but used for additional prototype switchpoints of
+    // properties that are known not to exist, e.g. the original property name in a __noSuchProperty__ invocation.
+    private SwitchPoint getProtoSwitchPoint(final String name) {
+        if (getProto() == null) {
+            return null;
+        }
+
+        for (ScriptObject obj = this; obj.getProto() != null; obj = obj.getProto()) {
+            final ScriptObject parent = obj.getProto();
+            parent.getMap().addListener(name, obj.getMap());
+        }
+
+        return getMap().getSwitchPoint(name);
+    }
+
     private void checkSharedProtoMap() {
         // Check if our map has an expected shared prototype property map. If it has, make sure that
         // the prototype map has not been invalidated, and that it does match the actual map of the prototype.
@@ -2343,7 +2358,9 @@
         final boolean      scopeCall = isScope() && NashornCallSiteDescriptor.isScope(desc);
 
         if (find == null) {
-            return noSuchProperty(desc, request);
+            return noSuchProperty(desc, request)
+                    // Add proto switchpoint to switch from no-such-property to no-such-method if it is ever defined.
+                    .addSwitchPoint(getProtoSwitchPoint(NO_SUCH_METHOD_NAME));
         }
 
         final boolean explicitInstanceOfCheck = explicitInstanceOfCheck(desc, request);
@@ -2366,7 +2383,9 @@
                         Object.class),
                 NashornGuards.combineGuards(
                         NashornGuards.getIdentityGuard(this),
-                        NashornGuards.getMapGuard(getMap(), true)));
+                        NashornGuards.getMapGuard(getMap(), true)))
+                // Add a protoype switchpoint for the original name so this gets invalidated if it is ever defined.
+                .addSwitchPoint(getProtoSwitchPoint(name));
     }
 
     /**
@@ -2412,7 +2431,9 @@
                                 func),
                         getProtoSwitchPoints(NO_SUCH_PROPERTY_NAME, find.getOwner()),
                         //TODO this doesn't need a ClassCastException as guard always checks script object
-                        null);
+                        null)
+                        // Add a protoype switchpoint for the original name so this gets invalidated if it is ever defined.
+                        .addSwitchPoint(getProtoSwitchPoint(name));
             }
         }
 
--- a/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/SharedPropertyMap.java	Sat Sep 10 12:18:30 2016 -0700
+++ b/nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/SharedPropertyMap.java	Wed Sep 14 11:22:38 2016 -0700
@@ -29,7 +29,7 @@
 
 /**
  * This class represents a property map that can be shared among multiple prototype objects, allowing all inheriting
- * top-level objects to also share one property map. This is class is only used for prototype objects, the
+ * top-level objects to also share one property map. This class is only used for prototype objects, the
  * top-level objects use ordinary {@link PropertyMap}s with the {@link PropertyMap#sharedProtoMap} field
  * set to the expected shared prototype map.
  *
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nashorn/test/script/basic/JDK-8077149.js	Wed Sep 14 11:22:38 2016 -0700
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ *
+ * This code is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 only, as
+ * published by the Free Software Foundation.
+ *
+ * This code is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ * version 2 for more details (a copy is included in the LICENSE file that
+ * accompanied this code).
+ *
+ * You should have received a copy of the GNU General Public License version
+ * 2 along with this work; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
+ * or visit www.oracle.com if you need additional information or have any
+ * questions.
+ */
+
+/**
+ * JDK-8077149: __noSuchProperty__ and __noSuchMethod__ invocations are not properly guarded
+ *
+ * @test
+ * @run
+ */
+
+var o = {};
+
+function invoke() {
+    return o._();
+}
+
+Object.prototype.__noSuchProperty__ = function() {
+    return function() { return "no such property" };
+};
+
+Assert.assertEquals(invoke(), "no such property");
+
+Object.prototype.__noSuchMethod__ = function() {
+    return "no such method";
+};
+
+Assert.assertEquals(invoke(), "no such method");
+
+Object.prototype._ = function() {
+    return "underscore method";
+};
+
+Assert.assertEquals(invoke(), "underscore method");