--- old/test/javax/xml/jaxp/unittest/parsers/Bug8073385.java 2016-07-21 20:34:09.660027778 -0700 +++ new/test/javax/xml/jaxp/unittest/parsers/Bug8073385.java 2016-07-21 20:34:09.533027778 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -23,24 +23,28 @@ package parsers; +import static org.testng.Assert.assertTrue; + import java.io.StringReader; import java.util.Locale; -import javax.xml.parsers.DocumentBuilderFactory; + import javax.xml.parsers.DocumentBuilder; -import org.xml.sax.SAXException; -import org.xml.sax.InputSource; +import javax.xml.parsers.DocumentBuilderFactory; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.DataProvider; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; -import static org.testng.Assert.assertTrue; +import org.xml.sax.InputSource; +import org.xml.sax.SAXException; /** * @bug 8073385 * @summary test that invalid XML character exception string contains * information about character value, element and attribute names */ +@Listeners({jaxp.library.BasePolicy.class}) public class Bug8073385 { private Locale defLoc;