--- old/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java 2016-07-21 20:34:34.433027778 -0700 +++ new/test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/BOMTest.java 2016-07-21 20:34:34.313027778 -0700 @@ -27,12 +27,14 @@ import javax.xml.stream.XMLStreamReader; import org.testng.Assert; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; /* * @bug 6218794 * @summary Test XMLStreamReader parses BOM UTF-8 and BOM UTF-16 big endian stream. */ +@Listeners({jaxp.library.FilePolicy.class}) public class BOMTest { // UTF-8 BOM test file private static final String INPUT_FILE1 = "UTF8-BOM.xml.data";