--- old/test/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java 2016-07-18 00:51:06.386750271 -0700 +++ new/test/javax/xml/jaxp/unittest/sax/IssueTracker56Test.java 2016-07-18 00:51:06.266810272 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2015, 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 @@ -31,6 +31,7 @@ import javax.xml.parsers.SAXParserFactory; import org.testng.Assert; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.Attributes; import org.xml.sax.ErrorHandler; @@ -42,6 +43,7 @@ * @bug 6809409 * @summary Test SAXException has Cause. */ +@Listeners({jaxp.library.BasePolicy.class}) public class IssueTracker56Test { @Test @@ -84,7 +86,8 @@ } - public class MyHandler extends DefaultHandler implements ErrorHandler { + @Listeners({jaxp.library.BasePolicy.class}) +public class MyHandler extends DefaultHandler implements ErrorHandler { public void startDocument() throws SAXException { } @@ -110,7 +113,8 @@ } - public class MyHandler1 extends DefaultHandler implements ErrorHandler { + @Listeners({jaxp.library.BasePolicy.class}) +public class MyHandler1 extends DefaultHandler implements ErrorHandler { public void startDocument() throws SAXException { }