RFR: JDK-8290126: Add a check in JavadocTester for "javadoc should not crash"

Pavel Rappo prappo at openjdk.org
Wed Jul 20 19:56:03 UTC 2022


On Wed, 20 Jul 2022 12:23:33 GMT, Hannes Wallnöfer <hannesw at openjdk.org> wrote:

> What is the reason for assuming package `com.sun` would be present in the stack trace? I notice that it is not present in the stack trace reported for the bug [JDK-8287379](https://bugs.openjdk.org/browse/JDK-8287379) which was recently fixed.

That's one reason why I suggested test-driving the new check by retrofitting it in the four existing use cases. Note that doclet/testSnippetTag/SnippetTester.java:55 looks for matches of:

    Pattern.compile("\\s*at.*\(.*\.java:\\d+\)")

While that pattern matches those exceptions from JDK-8287379, it might be too broad for the new check.

-------------

PR: https://git.openjdk.org/jdk/pull/9458


More information about the javadoc-dev mailing list