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

JSR-305 annotations incompatible with Java 11 #5

Closed
michael-schnell opened this issue Jan 3, 2020 · 1 comment
Closed

JSR-305 annotations incompatible with Java 11 #5

michael-schnell opened this issue Jan 3, 2020 · 1 comment
Labels

Comments

@michael-schnell
Copy link
Member

michael-schnell commented Jan 3, 2020

The following dependency causes problems with Java 11:

<dependency>
    <groupId>com.google.code.findbugs</groupId>
    <artifactId>jsr305</artifactId>
    <version>3.0.2</version>
</dependency>

JavaDoc plugin fails with error "cannot find symbol @nullable".

It is a split package problem, because the javax.annotation.* is already in use by jakarta.annotation:jakarta.annotation-api which does not include the, never approved, JSR-305 annotations. See Making JSR 305 Work On Java 9 for more information.

Best way would to add the JSR-305 annotations that project as discussed here:
jakartaee/common-annotations-api#5

michael-schnell added a commit that referenced this issue Jan 4, 2020
Workaround until issue #5 is solved
@michael-schnell
Copy link
Member Author

This is no longer a problem as everything was migrated to the "jakarta" namespace.
Now there is no longer an overlap between the non-standard javax.annotation.* and ** jakarta.annotation.*** namespace.

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