Skip to content

Mongo.Repository generation uses non-existent jakarta.annotation.concurrent.Immutable annotation #1626

@arlaneenalra

Description

@arlaneenalra

Just ran into this while attempting to update an application from using javax to jakarta. The Repositories.generator file at a minimum is adding an annotation that does not exist in the jakarta version of the annotations. There also doesn't appear to be a way to disable generating this annotation.

Based on my current understanding I'm pretty sure the jakarta.annotation.concurrent.Immutable annotation does not exist in newer versions of the API. I think the entire jakarta.annotation.concurrent package was removed from the official specification.

At a minimum I would expect the same rules as apply to the @Generated annotation to apply here, but the generator file seems to be missing the logic to make that work.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions