This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch maven-compiler-plugin-3.x
in repository https://gitbox.apache.org/repos/asf/maven-compiler-plugin.git
The following commit(s) were added to refs/heads/maven-compiler-plugin-3.x by
this push:
new a45d823 Make mcompiler-120 IT locale independent (#1063)
a45d823 is described below
commit a45d82331c2727bb78d0c7a45b5a22afd9788470
Author: Anil Kumar V <[email protected]>
AuthorDate: Sat Jul 4 12:21:39 2026 -0700
Make mcompiler-120 IT locale independent (#1063)
The verify script checked the full English warning text, so the IT
failed under non-English locales. Check for a few stable keywords
instead.
Fixes #1055
---
src/it/mcompiler-120/verify.groovy | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/it/mcompiler-120/verify.groovy
b/src/it/mcompiler-120/verify.groovy
index cd6ef26..0848a6b 100644
--- a/src/it/mcompiler-120/verify.groovy
+++ b/src/it/mcompiler-120/verify.groovy
@@ -20,7 +20,12 @@ def logFile = new File( basedir, 'build.log' )
assert logFile.exists()
content = logFile.text
+/*
+ * The message expected by this test was "unchecked call to add(E) as a member
of the raw type List".
+ * But we cannot test that message because it is locale-dependent. Check only
a few keywords instead.
+ */
+assert content.contains( 'add(E)' )
+assert content.contains( 'List' ) // May be `List` or `java.util.List`.
assert content.contains( 'Compilation failure' )
assert !content.contains( 'invalid flag' )
-assert content.contains( 'unchecked call to add(E) as a member of the raw type
' ) // List or java.util.List