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

StAX.next: close method that also closes stream & truly frees all resources

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Future Project
    • Icon: P3 P3
    • 5.0
    • 2.0
    • xml

      currently, XMLReader.close() explicitly does not close the underlying Input Stream. there should be a method that completly cleans up the environment, including closing any open streams.
      this RFE came up do to an AppServer use case:
       - AppServer applications use the JAX-WS runtime
       - a WSDL is parsed to bring up the web service
       - the stream was left open after app was deployed
       - AppServer later tries to close all files and cannot

            joehw Joe Wang
            jsuttorsunw Jeff Suttor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: