ascheman opened a new pull request, #80:
URL: https://github.com/apache/maven-jdeprscan-plugin/pull/80
Refs #76.
## Problem
The invoker ITs (`jdeprscan-release7/8/9`) assert on the English wording of
the JDK `jdeprscan` tool's findings, e.g.
class o/a/m/p/j/its/Deprecations uses deprecated class
java/rmi/RMISecurityManager
`jdeprscan`'s messages are localized (the JDK ships `jdeprscan_de`,
`jdeprscan_ja`, `jdeprscan_zh_CN`). On a JVM whose default locale resolves to
German the same line reads
class o/a/m/p/j/its/Deprecations verwendet die veraltete Klasse
java/rmi/RMISecurityManager
so `-release8` and `-release9` fail. CI never catches it because the runners
resolve to English.
## Fix
Match on the untranslated identifiers only (`java/rmi/RMISecurityManager`,
`java/lang/Boolean::<init>(Z)V`) instead of the translated sentence. The
identifiers appear in the build log iff `jdeprscan` actually flags them, so the
per-release present/absent profile is unchanged.
## Verification
`mvn clean verify -P run-its` → BUILD SUCCESS (`jdeprscan-release7` is
JDK≤10-gated via `invoker.java.version = !11+` and skipped on newer JDKs).
Confirmed against a forced German tool locale (`-Duser.language=de`) that the
identifiers stay byte-identical while only the surrounding wording changes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]