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

AttributeSet.toArray() should not declare throws IndexOutOfBoundsException

XMLWordPrintable

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: