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

ZipEntry.getCrc and setCrc @see themselves when they should @see each other

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.2, 6
    • core-libs
    • b40
    • generic
    • generic

      ZipEntry methods @see are un-usefully self-referential

      --- /tmp/geta21437 2005-05-26 00:31:22.375435600 -0700
      +++ ZipEntry.java 2005-05-26 00:28:38.478941000 -0700
      @@ -171,29 +171,29 @@
           }
       
           /**
            * Sets the CRC-32 checksum of the uncompressed entry data.
            * @param crc the CRC-32 value
            * @exception IllegalArgumentException if the specified CRC-32 value is
            * less than 0 or greater than 0xFFFFFFFF
      - * @see #setCrc(long)
      + * @see #getCrc()
            */
           public void setCrc(long crc) {
        if (crc < 0 || crc > 0xFFFFFFFFL) {
        throw new IllegalArgumentException("invalid entry crc-32");
        }
        this.crc = crc;
           }
       
           /**
            * Returns the CRC-32 checksum of the uncompressed entry data, or -1 if
            * not known.
            * @return the CRC-32 checksum of the uncompressed entry data, or -1 if
            * not known
      - * @see #getCrc()
      + * @see #setCrc(long)
            */
           public long getCrc() {
        return crc;
           }

      ###@###.### 2005-05-26 07:33:09 GMT

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: