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

java.awt.Container.getComponentZOrder javadoc has a typo

XMLWordPrintable

    • b83
    • sparc
    • solaris_2.6

      Name: sdR10048 Date: 10/07/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b22"



      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
          /**
           * Returns the z-order index of the component inside the container.
           * The higher a component is in the z-order hierarchy, the lower
           * its index. The component with the lowest z-order index is
           * painted last, above all other child components.
           *
           * @param comp the component being queried
           * @return the z-order index of the component; otherwise
           * returns -1 if the component is <code>null</code
                                                               ^^^^^^^ - ">" missing
           * or doesn't belong to the container
           * @see #setComponentZOrder(Component, int)
           * @since 1.5
           */
          public final int getComponentZOrder(Component comp) {

      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      The javadoc comments for the designated method have a typo.
      This causes some web-browsers (like IExplorer 5, Opera 7) to
      hide "or doesn't belong to the container" part of @return tag.
      (As 4900438 says).

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

            son Oleg Sukhodolsky (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: