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

doclint: structural issue hidden

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • None
    • tools
    • 8
    • b75
    • Verified

    Description

      /** <p id= > empty value </a> */

      Should generate, something like:
      Test.java:13: error: invalid name for anchor: ""
           * <p id= > empty value </a>
                 ^
      Test.java:13: error: unexpected end tag: </a>
           * <p id= > empty value </a>
                                              ^

      Instead it generates:
      Test.java:13: error: invalid name for anchor: ""
           * <p id= > empty value </a>
                  ^

      Note: the implementation assumes illegal attributes are always for an anchor, so
      the message is as implemented, but not necessarily the most descriptive.



      /** <p> no end required </a> */

      Should generate:
      Test.java:14: error: unexpected end tag: </a>
           * <p> no end required </a>
                                            ^

      But goes undetected. The endtag appears to be associated to the preceding
      tag for which no end-tag is required.


      /** <p> end allowed </p> </a> */

      Correctly generates:
      Test.java:15: error: unexpected end tag: </a>
           * <p> no end required </p></a>
                                                 ^

      Attachments

        Issue Links

          Activity

            People

              jjg Jonathan Gibbons
              strarup Peter Jensen (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: