Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javadoc parser for inline code blocks eats annotations #3658

Open
owengray-google opened this issue Jun 25, 2024 · 0 comments
Open

Javadoc parser for inline code blocks eats annotations #3658

owengray-google opened this issue Jun 25, 2024 · 0 comments
Labels

Comments

@owengray-google
Copy link
Contributor

Describe the bug
With input documentation:

 |/**
 | * <p>In a Java class:
 | *
 | * <pre>{@code
 | * import androidx.annotation.OptIn;
 | * import androidx.media3.common.util.UnstableApi;
 | * ...
 | * @OptIn(markerClass = UnstableApi.class)
 | * private void methodUsingUnstableApis() { ... }
 | * }</pre>
 | */
 |public static void foo() {}

The documentation for foo is missing the @OptIn.
(This might be reminiscent of https://bugs.openjdk.org/browse/JDK-8241780)

Screenshot 2024-06-25 at 11 49 17 AM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant