jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Migrate JMeter to Java 17 for next major release

Open milamberspace opened this issue 2 years ago • 1 comments

Use case

Next major version (6.0) will require Java 17 or superior

To do:

  • Migrate the Java 8 source code to Java 17
    • [ ] https://github.com/apache/jmeter/pull/6220
    • 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)
    • Ref. https://reflectoring.io/java-release-notes/
  • Opportunity to use the next API HTTP Client from Java 11?
  • Check the dependencies for Java 17 (update or removal)
  • Update the scripts (.sh/.bat) to check Java version before start JMeter
  • Update Java argline params
  • Upgrade build process (already done)

Possible solution

No response

Possible workarounds

No response

JMeter Version

6.0

Java Version

Java 17+

OS Version

No response

milamberspace avatar Jan 05 '24 08:01 milamberspace

Have you considered building JMeter with JDK21 and using virtual threads to improve performance?

linvaux avatar Sep 21 '24 02:09 linvaux