On Tue, 16 Jan 2024 02:17:10 GMT, Vladimir Petko <[email protected]> wrote:
> '--ignore-source-errors' allows generating Javadoc for the packages that
> contain compilation errors.
>
> jdk.javadoc.internal.doclets.toolkit.util.ClassTree generates a type
> hierarchy for javadoc that may include error types such as
>
> class Foo extends Bar {
> }
> ```
> where Bar is undefined.
>
> The user still wants to generate documentation for Foo and have Bar as a text
> label.
>
> For the unknown class Bar it is impossible to detect the enclosing class/file
> and javadoc crashes with exception.
>
> This PR returns Kind.OTHER for the error types, avoiding the javadoc crash.
@jonathan-gibbons I apologise for the ping, would it be possible to take
another look at this MR?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17435#issuecomment-1903448475