Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-19892

openapi-rest-dsl-generator - Use jakarta instead of javax annotation

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • 4.1.0
    • tooling
    • None
    • Patch Available
    • Unknown

    Description

      As far as I understand, Camel 4 should no longer rely on javax classes and use the Jakarta equivalents instead.

      However, while migrating my code base, I noticed that the camel-restdsl-openapi-plugin for Maven outputs classes annotated with javax.annotation.Generated and thus the generated code requires the javax.annotation-api dependency to compile.

      The reason is that RestDslSourceCodeGenerator.java of openapi-rest-dsl-generator still uses the old api, which can be easily fixed by changing the import statement (see attached patch-file).

      I did not touch the imports of javax.lang.model.* in RestDslSourceCodeGenerator.java, because they are related to the use of the Java Poet library, which has not yet moved to Jakarta. However, these dependencies do not affect the generated code.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            mwuersch Michael Würsch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment