This release includes the following enhancements: Release date: May 29, 2024
Test Impact Analysis Enhancements
Unit Test Assistant Enhancements
OpenAI Integration
Code Coverage Enhancements
Support for Android Kotlin
Support for Java 21Support for Java 21 has been added:
Security Compliance Pack EnhancementsSupport for CWE version 4.14 has been added and some configurations have been updated. See the New and Updated Test Configurations section below. Static Analysis Enhancements
|
Rule ID | Updates |
---|---|
CODSTA.BP.PCF | Improved performance and compatibility with Java 17 syntax. |
CODSTA.CIOC | The rule has been updated to support Java 21 syntax cases. |
CODSTA.DINT | The rule has been updated to support Java 21 syntax cases. |
CODSTA.EPC.CLNC | Improved performance and compatibility with Java 17 syntax. |
CODSTA.OIM.CLONE2 | Improved performance and compatibility with Java 17 syntax. |
CODSTA.ORG.AMOC | Improved performance and compatibility with Java 17 syntax. |
CODSTA.ORG.DCI | Improved performance and compatibility with Java 17 syntax. |
CODSTA.ORG.UNDPN | Improved performance and compatibility with Java 17 syntax. |
CODSTA.POD.SMC | The rule has been updated to support Java 21 syntax cases. |
CODSTA.READ.CCB | The rule has been updated to support Java 21 syntax cases. |
CODSTA.READ.NSI | Improved performance and compatibility with Java 17 syntax. |
CODSTA.READ.PCTOR | Improved performance and compatibility with Java 17 syntax. |
CODSTA.READ.UATS | The rule has been updated to support Java 21 syntax cases. |
EJB.CDP | Improved performance and compatibility with Java 17 syntax. |
EJB.CNDA | Improved performance and compatibility with Java 17 syntax. |
EJB.CNDF | Improved performance and compatibility with Java 17 syntax. |
EJB.CRTE | Improved performance and compatibility with Java 17 syntax. |
EJB.MDBC | Improved performance and compatibility with Java 17 syntax. |
EJB.NFDC | Improved performance and compatibility with Java 17 syntax. |
EJB.NFS | Improved performance and compatibility with Java 17 syntax. |
EJB.PCRTE | Improved performance and compatibility with Java 17 syntax. |
EJB.RILH | Improved performance and compatibility with Java 17 syntax. |
EJB.RT | Improved performance and compatibility with Java 17 syntax. |
EJB.RTC | Improved performance and compatibility with Java 17 syntax. |
EJB.RTP | Improved performance and compatibility with Java 17 syntax. |
EJB.THISARG | Improved performance and compatibility with Java 17 syntax. |
EJB.THISRET | Improved performance and compatibility with Java 17 syntax. |
EXCEPT.AIOC | The rule has been updated to support Java 21 syntax cases. |
EXCEPT.NTERR | Fixed false positive OWASP.2021.N5.NTERR. |
FORMAT.APAREN | The rule has been updated to support Java 21 syntax cases. |
FORMAT.CBRACE | The rule has been updated to support Java 21 syntax cases. |
FORMAT.FCB | The rule has been updated to support Java 21 syntax cases. |
FORMAT.OSPL | The rule has been updated to support Java 21 syntax cases. |
FORMAT.SAP | The rule has been updated to support Java 21 syntax cases. |
GC.AUTP | Improved performance and compatibility with Java 17 syntax. |
GC.DUD | Improved performance and compatibility with Java 17 syntax. |
GC.GC | Improved performance and compatibility with Java 17 syntax. |
GC.GCB | Improved performance and compatibility with Java 17 syntax. |
HIBERNATE.CAR | Improved performance and compatibility with Java 17 syntax. |
HIBERNATE.UGNQ | Improved performance and compatibility with Java 17 syntax. |
INIT.NFS | Improved performance and compatibility with Java 17 syntax. |
INIT.SICUI | Improved performance and compatibility with Java 17 syntax. |
JAVADOC.BT | The rule has been updated to support Java 21 syntax cases. |
JAVADOC.ECTT | The rule has been updated to support Java 21 syntax cases. |
JAVADOC.MISFORMAT | The rule has been updated to support Java 21 syntax cases. |
JDBC.DSLV | Improved performance and compatibility with Java 17 syntax. |
JDBC.SCSF | Improved performance and compatibility with Java 17 syntax. |
JDBC.UDS | Improved performance and compatibility with Java 17 syntax. |
JUNIT.CSUPER | Improved performance and compatibility with Java 17 syntax. |
JUNIT.ISMTC | Improved performance and compatibility with Java 17 syntax. |
JUNIT.TCWNT | Improved performance and compatibility with Java 17 syntax. |
NAMING.IFV | Improved performance and compatibility with Java 17 syntax. |
NAMING.RPKG | Improved performance and compatibility with Java 17 syntax. |
OOP.ACECC | Improved performance and compatibility with Java 17 syntax. |
OOP.INSOF | The rule has been updated to support Java 21 syntax cases. |
OPT.ACDO | Improved performance and compatibility with Java 17 syntax. |
OPT.AGC | Improved performance and compatibility with Java 17 syntax. |
OPT.DIC | Improved performance and compatibility with Java 17 syntax. |
OPT.IRB | Improved performance and compatibility with Java 17 syntax. |
OPT.NCIO | The rule has been updated to support Java 21 syntax cases. |
OPT.NSF | Improved performance and compatibility with Java 17 syntax. |
OPT.SI | Improved performance and compatibility with Java 17 syntax. |
OPT.UEQ | Improved performance and compatibility with Java 17 syntax. |
OPT.UISO | The rule has been updated to support Java 21 syntax cases. |
PB.API.DNCSS | Improved performance and compatibility with Java 17 syntax. |
PB.API.KOEH | Fixed errors on String type keys. |
PB.API.SBCC | Improved performance and compatibility with Java 17 syntax. |
PB.API.URL | Improved performance and compatibility with Java 17 syntax. |
PB.CUB.MAIN | Improved performance and compatibility with Java 17 syntax. |
PB.EQLC | The rule has been updated to support Java 21 syntax cases. |
PB.LOGIC.JI | Improved performance and compatibility with Java 17 syntax. |
PB.NAECS | The rule has been updated to support Java 21 syntax cases. |
PB.NUM.IMOF | Improved performance and compatibility with Java 17 syntax. |
PB.OCSF | Improved performance and compatibility with Java 17 syntax. |
PB.PDCL | The rule has been updated to support Java 21 syntax cases. |
PB.PDS | The rule has been updated to support Java 21 syntax cases. |
PB.TYPO.UOL | Improved performance and compatibility with Java 17 syntax. |
PB.USC.AES | Improved performance and compatibility with Java 17 syntax. |
PB.USC.FCBS | Fixed incorrectly reported finding when map compute was used instead of put. |
PB.USC.UNARY | Improved performance and compatibility with Java 17 syntax. |
PROPS.BSPV | Improved performance and compatibility with Java 17 syntax. |
SECURITY.IBA.DXXE | Fixed false positive. |
SECURITY.WSC.AUIC | Improved performance and compatibility with Java 17 syntax. |
SECURITY.WSC.CL | Improved performance and compatibility with Java 17 syntax. |
SECURITY.WSC.CLI | Improved performance and compatibility with Java 17 syntax. |
SECURITY.WSC.DSER | Improved performance and compatibility with Java 17 syntax. |
SECURITY.WSC.SL | Improved performance and compatibility with Java 17 syntax. |
SERIAL.ENNAC | Improved performance and compatibility with Java 17 syntax. |
SERIAL.MRWD | Improved performance and compatibility with Java 17 syntax. |
SERVLET.AJDBC | Improved performance and compatibility with Java 17 syntax. |
SERVLET.BINS | Improved performance and compatibility with Java 17 syntax. |
SERVLET.IF | Improved performance and compatibility with Java 17 syntax. |
SERVLET.STM | Improved performance and compatibility with Java 17 syntax. |
TRS.IMSE | Improved performance and compatibility with Java 17 syntax. |
UC.AURCO | Fixed false positive for Map.computeIfAbsent(). |
UC.EF | The rule has been updated to support Java 21 syntax cases. |
The following rules have been updated:
Rule ID | Updates |
---|---|
BD.PB.CC | Added a parameter to report on non-branching conditions. |
BD.PB.SBONE | Rule updated to consider new methods of StringBuffer and StringBuilder classes. |
The following IDEs are now supported:
Old name | New name |
---|---|
Unit Test Bulk Creation | Unit Test Single Class Creation |
Unit Test Tier 1 | Unit Test Bulk Creation Tier 1 |
Unit Test Tier 2 | Unit Test Bulk Creation Tier 2 |
Unit Test Tier 3 | Unit Test Bulk Creation Tier 3 |
Unit Test Tier 4 | Unit Test Bulk Creation Tier 4 |
Report Format | Before | Now |
---|---|---|
SARIF for Azure DevOps | report.sarif | report_azure.sarif |
XSL Custom | report.html | report_custom.html |
AI recommendations generated for CDD and METRIC rules, as well as .properties and .xml files, may not be accurate and should not be relied upon. See Generating a Suggested Fix.
Support for the following IDEs is now removed:
As a result, Java 11 is now required for running Jtest in an IDE or as part of a build system integration. Java 1.8 is no longer compatible.
Removed Rule | Suggested Rule |
---|---|
BD.PB.DEREF | BD.PB.CC |
BD.PB.INTOVERF | BD.PB.INTDL, BD.PB.INTUB, BD.PB.INTVC and BD.PB.INTWRAP |
BD.PB.POVR | BD.PB.VOVR |
Bug/FR ID | Description |
---|---|
JT-75934 | JtestCov does not recognize a modified files correctly |
JT-75937 | Lombok integration and Java |
JT-76175 | False positive OWASP.2021.N5.NTERR |
JT-76235 | How to fix the code for JAVA.SECURITY.IBA.DXXE |
For information about this release, see https://docs.parasoft.com/display/JTEST20241/Updates+in+2024.1. |