AttributeSet.toArray() should not declare throws IndexOutOfBoundsException

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: client-libs
    • None
    • 2d
    • beta2
    • sparc
    • solaris_7

       javax.print.AttributeSet.toArray() declares that it throws
       IndexOutOfBoundsException. Its not very usual to declare such a runtime
       exception in a throws clause, its more normal to document it as
       an @throws javadoc tag, But most relevantly its highly unlikely that
       any expected implementation would throw this exception.
       The clause should be removed from that, and from the class that
       implements the interface.

            Assignee:
            Philip Race
            Reporter:
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: