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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 6
    • 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).

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: