jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Move to Java 17 (migrate source code from Java 8)

Open milamberspace opened this issue 6 months ago • 0 comments

Description

Migrate the Java 8 source code to Java 17

  • Pattern Matching for instanceof uses (Java 14/16)
  • Implicit Typing with var (Java 10)
  • Using Switch Expressions / yield Keyword (Java 14)
  • Using Text Blocks (Java 15)

Motivation and Context

See #6219

How Has This Been Tested?

  • All tests passed : OK
  • Build the archives : OK (with Java 17 / 21 and 24, on Linux)
  • Manual tests : OK

Screenshots (if appropriate):

Types of changes

  • Breaking change : Now need Java17+ to run JMeter

Checklist:

  • [X] My code follows the code style of this project.
  • [ ] I have updated the documentation accordingly.

milamberspace avatar Jun 13 '25 10:06 milamberspace