RFR : JDK-8219632: Remove reference to com.sun.javadoc API in RemoveOldDoclet test
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Mar 8 21:35:13 UTC 2019
Priya,
In the test, you use a literal string for the test class name. A better
style is to use the name of the .class literal, as in
46 static final String Doclet_CLASS_NAME = TestDoclet.class.getName();
Fix that, and you're good to go.
-- Jon
On 02/25/2019 03:48 AM, Priya Lakshmi Muthuswamy wrote:
> Hi,
>
> Kindly review the fix for
> https://bugs.openjdk.java.net/browse/JDK-8219632
> webrev : http://cr.openjdk.java.net/~pmuthuswamy/8219632/webrev.00/
>
> jdk/javadoc/tool/removeOldDoclet/RemoveOldDoclet.java tries to use
> OldDoclet.jasm which hold reference to removed API com.sun.javadoc.
> As part of the fix for
> JDK-8219575(jdk/javadoc/tool/removeOldDoclet/RemoveOldDoclet test
> fails in mach5),
> tried to handle the NoDefClassFoundError.
>
> This fix removes the reference to com.sun.javadoc in test class and
> the handling of NoClassDefFoundError.
> If user creates any Doclet which doesn't implement
> jdk.javadoc.doclet.Doclet, there will be error stating that its not a
> valid Doclet.
>
> Thanks,
> Priya
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/javadoc-dev/attachments/20190308/72dc852b/attachment.html>
More information about the javadoc-dev
mailing list