jmeter
jmeter copied to clipboard
Move to Java 17 (migrate source code from Java 8)
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.