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

jdk/javadoc/doclet/MetaTag/MetaTag.java with unexpected date

XMLWordPrintable

    • b13
    • Fix failed

        ```Starting subtest 1.11: checkOutput
        FAILED: out-1/overview-summary.html: following text not found:
        <meta name="dc.created" content="2019-03-15">
        found
        <!DOCTYPE HTML>
        <!-- NewPage -->
        <html lang="en">
        <head>
        <!-- Generated by javadoc (13-internal) on Thu Mar 14 23:59:55 GMT 2019 -->
        <title>Overview</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="dc.created" content="2019-03-14">```

        Looks like a very unfortunate timing bug where we crossed midnight and so the current date no longer matched the generated date. And indeed the test author considered this :)

          // NOTE: Hopefully, this regression test is not run at midnight. If the output
          // was generated yesterday and this test is run today, the test will fail.
          checkOutput("overview-summary.html", found,
                  "<meta name=\"" + metaNameDate + "\" content=\"" + date() + "\">");

              jjg Jonathan Gibbons
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: