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

javadoc creates empty <span class="italic"></span>

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • 8
    • tools
    • b113
    • Verified

    Description

      javadoc can create empty <span> tags.

      See java.sql.Time#getYear

         /**
          * This method is deprecated and should not be used because SQL <code>TIME</code>
          * values do not have a year component.
          *
          * @deprecated
          * @exception java.lang.IllegalArgumentException if this
          * method is invoked
          * @see #setYear
          */
          @Deprecated
          public int getYear() {
              throw new java.lang.IllegalArgumentException();
          }

      See generated output
      <div class="block"><span class="strong">Deprecated.</span>&nbsp;<span class="italic"></span></div>
      <div class="block">This method is deprecated and should not be used because SQL <code>TIME</code>
       values do not have a year component.</div>

      Note the empty <span> tag, which is detected nd reported by tidy.

      Attachments

        Activity

          People

            bpatel Bhavesh Patel (Inactive)
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: