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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b113
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: