@@ -0,0 +1,662 @@
+//This app test bug:%0A//https://bugs.openjdk.java.net/browse/JDK-8028111%0A//hvivani-2014-10-04%0A%0Aimport java.io.ByteArrayInputStream;%0A%0Aimport javax.xml.stream.XMLInputFactory;%0A%0Apublic class TestBug8028111 %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        String xml = %22%3C?xml version=%5C%221.0%5C%22?%3E%3Ctest%3E%3C/test%3E%22;%0A%0A        XMLInputFactory factory = XMLInputFactory.newInstance();%0A%0A        for (int i = 0; i %3C 640000; i++) %7B%0A%0A            ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());%0A            factory.createXMLEventReader(stream);%0A            System.out.println(%22New stream: %22 + Integer.toString(i));%0A        %7D%0A    %7D%0A%7D%0A

Create TestBug8028111.java