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

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

XMLWordPrintable

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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: