sjsxp issue 44: XMLStreamReader.getName() should throw IllegalStateException, not IllegalArg

XMLWordPrintable

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

        As per XMLStreamReader#getName Javadocs, method should throw
        IllegalStateException if the current event is not start/end element. Current
        implementation instead throws IllegalArgumentException (possibly because Stax
        ref. impl. did the same?).
        Trivially easy to change, on line 882 of XMLReaderImpl change exception type.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: