sjsxp issue 58: XMLEvent.getLocation() returns a volatile Location

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 6
    • Component/s: xml
    • 1.4
    • generic
    • generic
    • Verified

        The XMLEvent getLocation() interface method has the following documentation:

        "Return the location of this event. The Location returned from this method is
        non-volatile and will retain its information."

        However, this is not true in the SJSXP implementation: the return value of
        XMLReaderImpl.getLocation() is stored in XMLEvent instances, and that Location
        object is volatile (only valid until next() is called).

              Assignee:
              Joe Wang
              Reporter:
              Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: