This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git


The following commit(s) were added to refs/heads/main by this push:
     new 39a3e1ce02 Add -proc:none to call of Java compiler (Test_schemagen)
39a3e1ce02 is described below

commit 39a3e1ce02e4427d5a8b1c812080ee630dbd8ca7
Author: Andy Seaborne <[email protected]>
AuthorDate: Fri Jun 7 16:11:19 2024 +0100

    Add -proc:none to call of Java compiler (Test_schemagen)
---
 jena-cmds/src/test/java/jena/Test_schemagen.java | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/jena-cmds/src/test/java/jena/Test_schemagen.java 
b/jena-cmds/src/test/java/jena/Test_schemagen.java
index 522f764181..14e9e61d16 100644
--- a/jena-cmds/src/test/java/jena/Test_schemagen.java
+++ b/jena-cmds/src/test/java/jena/Test_schemagen.java
@@ -789,8 +789,10 @@ public class Test_schemagen
 
             if (sjc != null && jcRun != null) {
                 // build the args list for javac
-                String[] args = new String[] {"-classpath", getClassPath( 
tmpDir ), "-d", tmpDir.getPath(), srcFile.getPath()};
-
+                String[] args = new String[] {"-classpath", getClassPath( 
tmpDir ),
+                                              "-d", tmpDir.getPath(), 
srcFile.getPath(),
+                                              // Otherwise the build has 
warnings (Java21)
+                                              "-proc:none" };
                 int success = (Integer) jcRun.invoke( sjc, null, null, null, 
args );
                 assertEquals( "Errors reported from compilation of schemagen 
output", 0, success );
             }

Reply via email to