Skip to content

JSR-305 annotations incompatible with Java 11 #5

@michael-schnell

Description

@michael-schnell

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions