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

Remove erroneous @since for java.net.Inet[46]Address

    XMLWordPrintable

Details

    • b149
    • Not verified

    Description

      The Inet4Address and Inet6Address classes were added in 1.4, which is correctly indicated by the class-level @since javadoc tag. There are several other method-level @since javadoc tags that indicate that the method was added in a release prior to 1.4. These are clearly incorrect.

      jdk/src/java.base/share/classes/java/net/Inet4Address.java:162
      Containing element : java.net.Inet4Address, inner element : java.net.Inet4Address.isMulticastAddress()
      The version of containing element is greater than the version of the inner one : 1.4 >= 1.1

      jdk/src/java.base/share/classes/java/net/Inet4Address.java:327
      Containing element : java.net.Inet4Address, inner element : java.net.Inet4Address.getHostAddress()
      The version of containing element is greater than the version of the inner one : 1.4 >= 1.0.2

      jdk/src/java.base/share/classes/java/net/Inet6Address.java:689
      Containing element : java.net.Inet6Address, inner element : java.net.Inet6Address.isMulticastAddress()
      The version of containing element is greater than the version of the inner one : 1.4 >= 1.1

      There are a number of superfluous method-level '@since 1.4' javadoc. These are not needed since there is a class-level @since javadoc tag.

      Attachments

        Activity

          People

            clanger Christoph Langer
            shurailine Aleksandre Iline
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: