RFR: 8273544: Increase test coverage for snippets [v2]

Pavel Rappo prappo at openjdk.java.net
Fri Nov 19 10:05:42 UTC 2021


On Thu, 18 Nov 2021 17:24:17 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:

>> Pavel Rappo has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Test one more corner case example
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/taglets/SnippetTaglet.java line 202:
> 
>> 200:                     fileObject = fileManager.getFileForInput(Location.SNIPPET_PATH, "", v);
>> 201:                 }
>> 202:             } catch (IOException | IllegalArgumentException e) { // TODO: test this when JDK-8276892 is integrated
> 
> FYI: The documented conditions of `IllegalArgumentException` do not arise in this context, although it's not wrong to catch the exception.

You are much more knowledgeable in FileManager than I am. My thinking was that while it's probably not an issue with the default file manager, I couldn't guarantee that IllegalArgumentException is not thrown if this code runs with a custom file manager.

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

PR: https://git.openjdk.java.net/jdk/pull/6359


More information about the javadoc-dev mailing list