[ 
https://issues.apache.org/jira/browse/YETUS-557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17456518#comment-17456518
 ] 

Mike Drob commented on YETUS-557:
---------------------------------

{quote}When I try to build this under OpenJDK11 or OpenJDK17
{quote}
Oh no! The API changed between 11 and 17...

[https://github.com/openjdk/jdk/blob/jdk-11+28/src/jdk.javadoc/share/classes/jdk/javadoc/doclet/StandardDoclet.java#L61]
{{public Set<Doclet.Option> getSupportedOptions()}}

https://github.com/openjdk/jdk/blob/jdk-17+35/src/jdk.javadoc/share/classes/jdk/javadoc/doclet/StandardDoclet.java#L92
{{public Set<? extends Doclet.Option> getSupportedOptions()}}

I was apparently accidentally using JDK 17 with this... changing the patch is 
easy enough, it's just a type signature. I think because generic type 
information is erased at runtime, the same version of compiled code would be 
safe with 11 and 17 after it gets built? I'm not sure if there is more to do.
 

> Investigate switching to jdk.javadoc.doclet
> -------------------------------------------
>
>                 Key: YETUS-557
>                 URL: https://issues.apache.org/jira/browse/YETUS-557
>             Project: Yetus
>          Issue Type: Task
>          Components: Audience Annotations
>    Affects Versions: 0.6.0
>            Reporter: Allen Wittenauer
>            Assignee: Mike Drob
>            Priority: Major
>         Attachments: 0001-Remove-JDK8.patch, YETUS-557.00.patch
>
>
> It looks like there is a newer API available for building Javadoc doclets.  
> This might help remove our dependency on tools.jar.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to