RFR: JDK-8224083: javadoc Reporter generates "warning" for Kind.NOTE

Vicente Romero vicente.romero at oracle.com
Wed May 29 22:27:25 UTC 2019


Please review fix for [1] and [2] at [3]. These are two separate issues 
for which the same test is provided so this one patch will fix both. The 
first issue is related to jdk.javadoc.internal.tool.Messager, producing 
warnings at method:

print(Kind kind, Element e, String msg)

even if it was instructed to produce notes. A case for Kind.NOTE was 
added. The other issue was this same class throwing a NPE if it couldn't 
find an element at method ::getDiagSource. In this case a check for null 
is done and `programName` is returned as it is done already for a 
similar case in that method,

Thanks,
Vicente

[1] https://bugs.openjdk.java.net/browse/JDK-8224083
[2] https://bugs.openjdk.java.net/browse/JDK-8224082
[3] http://cr.openjdk.java.net/~vromero/8224083/webrev.00/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20190529/620bf489/attachment.html>


More information about the compiler-dev mailing list