Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6422391

Infinite recursive loop in XMLOutputFactoryImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0, 6
    • xml
    • b90
    • generic, sparc
    • generic, solaris_9

      Following code runs into infinite loop on Mustang b78:
      ------------------------ START ------------------------------------------------------
      import java.io.*;

      import javax.xml.stream.*;
      import javax.xml.transform.*;
      import javax.xml.transform.stream.*;
      import javax.xml.transform.stax.*;

      public class StreamResultTest{

      public static void main(String[] args) throws Exception{

      XMLOutputFactory ofac = XMLOutputFactory.newInstance();
      StreamResult sr = new StreamResult(new FileOutputStream("out.xml"));
      XMLStreamWriter writer = ofac.createXMLStreamWriter(sr);
      writer.writeStartDocument("utf-8","1.0");
      writer.writeStartElement("root");
      writer.writeEndElement();
      writer.writeEndDocument();
      writer.close();
      }
      }
      ------------------------ END ------------------------------------------------------

            sreddysunw Sunitha Reddy (Inactive)
            sreddysunw Sunitha Reddy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: