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

jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java fails after JDK-8288545

XMLWordPrintable

    • b28
    • Verified

        The following test is failing in the JDK19 CI:

        jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java

        ----------System.out:(133/9479)----------
        Running test test
        Running javadoc...
        args: [-Xdoclint:none, -d, out, /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2087/src.full/open/test/langtools/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java]
        javadoc OUT:
        Loading source file /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2087/src.full/open/test/langtools/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java...
        Constructing Javadoc information...
        Creating destination directory: "out/"
        Building index for all the packages and classes...
        Standard Doclet version 19-ea+28-2087
        Building tree for all the packages and classes...
        Generating out/TestTagMisuse.html...
        error: An internal exception has occurred.
           (java.lang.NullPointerException: Cannot invoke "com.sun.source.doctree.ReferenceTree.toString()" because the return value of "com.sun.source.doctree.LinkTree.getReference()" is null)
        1 error

        javadoc STDERR:
        Please file a bug against the javadoc tool via the Java bug reporting page
        (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com)
        for duplicates. Include error messages and the following diagnostic in your report. Thank you.
        java.lang.NullPointerException: Cannot invoke "com.sun.source.doctree.ReferenceTree.toString()" because the return value of "com.sun.source.doctree.LinkTree.getReference()" is null
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.seeTagToContent(HtmlDocletWriter.java:987)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter$2.visitLink(HtmlDocletWriter.java:1656)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter$2.visitLink(HtmlDocletWriter.java:1508)
        at jdk.compiler/com.sun.tools.javac.tree.DCTree$DCLink.accept(DCTree.java:747)
        at jdk.compiler/com.sun.source.util.SimpleDocTreeVisitor.visit(SimpleDocTreeVisitor.java:79)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.commentTagsToContent(HtmlDocletWriter.java:1740)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.commentTagsToContent(HtmlDocletWriter.java:1454)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addCommentTags(HtmlDocletWriter.java:1382)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDocletWriter.addSummaryComment(HtmlDocletWriter.java:1347)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter.addIndexComment(SubWriterHolderWriter.java:126)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.SubWriterHolderWriter.addSummaryLinkComment(SubWriterHolderWriter.java:148)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.AbstractMemberWriter.addMemberSummary(AbstractMemberWriter.java:358)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.buildSummary(MemberSummaryBuilder.java:275)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.addSummary(MemberSummaryBuilder.java:344)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder.buildMethodsSummary(MemberSummaryBuilder.java:234)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.MemberSummaryBuilder$1.build(MemberSummaryBuilder.java:111)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildMemberSummary(ClassBuilder.java:300)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.buildClassDoc(ClassBuilder.java:121)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.builders.ClassBuilder.build(ClassBuilder.java:98)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:378)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:281)
        at jdk.javadoc/jdk.javadoc.internal.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:192)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:207)
        at jdk.javadoc/jdk.javadoc.internal.doclets.toolkit.AbstractDoclet.run(AbstractDoclet.java:110)
        at jdk.javadoc/jdk.javadoc.doclet.StandardDoclet.run(StandardDoclet.java:103)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.parseAndExecute(Start.java:574)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:397)
        at jdk.javadoc/jdk.javadoc.internal.tool.Start.begin(Start.java:346)
        at jdk.javadoc/jdk.javadoc.internal.tool.Main.run(Main.java:141)
        at javadoc.tester.JavadocTester.javadoc(JavadocTester.java:477)
        at TestTagMisuse.test(TestTagMisuse.java:49)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at javadoc.tester.JavadocTester.runTest(JavadocTester.java:385)
        at javadoc.tester.JavadocTester.runTests(JavadocTester.java:297)
        at javadoc.tester.JavadocTester.runTests(JavadocTester.java:279)
        at TestTagMisuse.main(TestTagMisuse.java:44)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1596)

        Starting subtest 1.1: check exit code
        FAILED: return code 1; expected OK(0)
                at javadoc.tester.JavadocTester.checkExit(JavadocTester.java:588)
                at TestTagMisuse.test(TestTagMisuse.java:52)
                at javadoc.tester.JavadocTester.runTest(JavadocTester.java:385)

        Starting subtest 1.2: checkOutput TEXT allowOverlaps:false expectFound:true expectOrdered:false
        FAILED: OUT: following text not found:
        warning: Tag @param cannot be used in field documentation.
        found
        Loading source file /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2087/src.full/open/test/langtools/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java...
        Constructing Javadoc information...
        Creating destination directory: "out/"
        Building index for all the packages and classes...
        Standard Doclet version 19-ea+28-2087
        Building tree for all the packages and classes...
        Generating out/TestTagMisuse.html...
        error: An internal exception has occurred.
           (java.lang.NullPointerException: Cannot invoke "com.sun.source.doctree.ReferenceTree.toString()" because the return value of "com.sun.source.doctree.LinkTree.getReference()" is null)
        1 error
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1213)
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1157)
                at javadoc.tester.JavadocTester.checkOutput(JavadocTester.java:650)
                at TestTagMisuse.test(TestTagMisuse.java:54)
                at javadoc.tester.JavadocTester.runTest(JavadocTester.java:385)

        Starting subtest 1.3: checkOutput TEXT allowOverlaps:false expectFound:true expectOrdered:false
        FAILED: OUT: following text not found:
        warning: Tag @throws cannot be used in field documentation.
        found
        Loading source file /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2087/src.full/open/test/langtools/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java...
        Constructing Javadoc information...
        Creating destination directory: "out/"
        Building index for all the packages and classes...
        Standard Doclet version 19-ea+28-2087
        Building tree for all the packages and classes...
        Generating out/TestTagMisuse.html...
        error: An internal exception has occurred.
           (java.lang.NullPointerException: Cannot invoke "com.sun.source.doctree.ReferenceTree.toString()" because the return value of "com.sun.source.doctree.LinkTree.getReference()" is null)
        1 error
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1213)
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1157)
                at javadoc.tester.JavadocTester.checkOutput(JavadocTester.java:650)
                at TestTagMisuse.test(TestTagMisuse.java:54)
                at javadoc.tester.JavadocTester.runTest(JavadocTester.java:385)

        Starting subtest 1.4: checkOutput TEXT allowOverlaps:false expectFound:true expectOrdered:false
        FAILED: OUT: following text not found:
        warning: Tag @return cannot be used in constructor documentation.
        found
        Loading source file /System/Volumes/Data/mesos/work_dir/jib-master/install/jdk-19+28-2087/src.full/open/test/langtools/jdk/javadoc/doclet/testTagMisuse/TestTagMisuse.java...
        Constructing Javadoc information...
        Creating destination directory: "out/"
        Building index for all the packages and classes...
        Standard Doclet version 19-ea+28-2087
        Building tree for all the packages and classes...
        Generating out/TestTagMisuse.html...
        error: An internal exception has occurred.
           (java.lang.NullPointerException: Cannot invoke "com.sun.source.doctree.ReferenceTree.toString()" because the return value of "com.sun.source.doctree.LinkTree.getReference()" is null)
        1 error
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1213)
                at javadoc.tester.JavadocTester$OutputChecker.check(JavadocTester.java:1157)
                at javadoc.tester.JavadocTester.checkOutput(JavadocTester.java:650)
                at TestTagMisuse.test(TestTagMisuse.java:54)
                at javadoc.tester.JavadocTester.runTest(JavadocTester.java:385)

        Starting subtest 1.5: checkOutput TEXT allowOverlaps:false expectFound:false expectOrdered:false
        Passed: OUT: following text not found:
        DocletAbortException


        ----------System.err:(13/705)----------
        java.lang.Error: 4 of 5 subtests failed
        at javadoc.tester.JavadocTester.printSummary(JavadocTester.java:1000)
        at javadoc.tester.JavadocTester.runTests(JavadocTester.java:301)
        at javadoc.tester.JavadocTester.runTests(JavadocTester.java:279)
        at TestTagMisuse.main(TestTagMisuse.java:44)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1596)

        JavaTest Message: Test threw exception: java.lang.Error
        JavaTest Message: shutting down test

        result: Failed. Execution failed: `main' threw exception: java.lang.Error: 4 of 5 subtests failed

              jjg Jonathan Gibbons
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: