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

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

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Future Project
    • Affects Version/s: 2.0
    • Fix Version/s: 5.0
    • Component/s: xml
    • Labels:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: