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

CompoundBorder.isBorderOpaque() has incorrect documentation.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 7
    • 1.4.0
    • client-libs
    • b38
    • generic
    • generic
    • Not verified

    Description

      Here is the documentation and implementation of CompoundBorder.isBorderOpaque:

          /**
           * Returns whether or not this compound border is opaque.
           * Returns true if both the inside and outside borders are
           * non-null and opaque; returns false otherwise.
           */
          public boolean isBorderOpaque() {
      return (outsideBorder == null || outsideBorder.isBorderOpaque()) &&
                     (insideBorder == null || insideBorder.isBorderOpaque());
          }

      The implementation was made this way by the fix to bug 4317988 in merlin. However, as you can see, the documentation clearly does not match the implementaion any more. Considering the use of this class and it's other methods, it appears that the implementation is correct and it is in fact bad doc.

      Attachments

        Issue Links

          Activity

            People

              malenkov Sergey Malenkov (Inactive)
              shickeysunw Shannon Hickey (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: