Release notes - SonarJava - 8.42
Feature
SONARJAVA-6868 Update RSPEC before 8.42 release
SONARJAVA-6906 Improve rule S8924: raise only when the usage is inconsistent
False Positive
SONARJAVA-6256 S6832 should not raise when the injected bean's scope is ScopedProxyMode.TARGET_CLASS
SONARJAVA-6660 S2229 FP: self-invocation inside a TransactionTemplate callback flagged despite an active programmatic transaction
SONARJAVA-6833 Fix false positives for java:S2699 "Tests should include assertions"
SONARJAVA-6870 Improve S9342 Archive entries should not be empty
SONARJAVA-6874 Fix FP on S9351: "BigDecimal.compareTo()" should be used instead of "equals()" for numerical comparison
SONARJAVA-6876 S2479 Reduce noise by suppressing on strings that are most likely generated
SONARJAVA-6892 Fix FP in S8989 for cases where no transaction actually occurs
SONARJAVA-6898 Fix FPs on S5786 and S5810: stop raising issues for public / protected test classes
False Negative
SONARJAVA-6888 Extend S9133 Predefined mathematical constants should be used instead of hard-coded approximations
Bug
SONARJAVA-5397 Custom Checkstyle issues are not imported
SONARJAVA-6912 S6829 should recognize @Inject constructors in Spring components
Maintenance
SONARJAVA-6687 Add exception for BigDecimal String constructor to the rule java:S2129 description
SONARJAVA-6869 Prepare next development iteration 8.42.0
SONARJAVA-6875 Update SonarSource/sonar-scanner-engine monorepo to v13.10.0.4657
SONARJAVA-6877 Update dependency jdx/mise to v2026.8.11
SONARJAVA-6881 Update jdx/mise-action action to v4.3.0
SONARJAVA-6885 Update dependency jdx/mise to v2026.8.14
SONARJAVA-6886 Update SonarSource/sonar-plugin-api monorepo to v14
SONARJAVA-6890 Update SonarSource/sonarqube monorepo to v26.9.0.129388
SONARJAVA-6891 Remove redundant logging dependency handling
SONARJAVA-6895 Update SonarSource/sonar-analyzer-commons monorepo to v2.31.0.5284
SONARJAVA-6900 Update dependency org.sonarsource.orchestrator:sonar-orchestrator-junit4 to v6.4.3.4676
SONARJAVA-6901 Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.16.0
SONARJAVA-6904 Update dependency jdx/mise to v2026.8.15
SONARJAVA-6909 Update dependency jdx/mise to v2026.9.0
SONARJAVA-6913 Update dependency jdx/mise to v2026.9.1
SONARJAVA-6935 Update rule metadata