Infinite recursive loop in XMLOutputFactoryImpl

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 5.0, 6
    • Component/s: 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 ------------------------------------------------------

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: