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

Spec for BranchElement.getEndOffset() is incomplete

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b28
    • CPU:
      sparc
    • OS:
      solaris_7

      Description

      Name: ssR10000 Date: 04/14/2003



      The spec for BranchElement.getEndOffset() reads:
      ----------------- J2SE API v1.4 v1.5 -----------------
      public int getEndOffset()
      Gets the ending offset in the model for the element.

      Specified by:
          getEndOffset in interface Element
      Specified by:
          getEndOffset in class AbstractDocument.AbstractElement

      Returns:
      the offset >= 0
      -------------------------------------------------------
      There is no words about what should happen if object did not have any children.
      Before it throws ArrayOutOfBounds but now it is NullPointerException -
      Could you please reflect correct one in the spec?

      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            sharonz Sharon Zakhour (Inactive)
            Reporter:
            sswsunw Ssw Ssw (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: