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

Spec for BranchElement.getEndOffset() is incomplete

XMLWordPrintable

    • b28
    • sparc
    • solaris_7

      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?

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: