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

build: replace --source and --target with --release

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.15.0
    • build system
    • None
    • Unknown

    Description

      The --release option of the compiler has safer guarantees of compatibility with the specified Java version. These guarantees are not available supported when using --source and --target (see: https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror).

       

      Now that we moved to Java 11 as the minimum, we should replace the usages of those 2 flags with just the release option.

      Attachments

        Issue Links

          Activity

            People

              orpiske Otavio Rodolfo Piske
              orpiske Otavio Rodolfo Piske
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: