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

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jci.git


The following commit(s) were added to refs/heads/master by this push:
     new c97d92d  Update deprecated call in 
org.apache.commons.jci2.examples.commandline.CommandlineCompiler.
c97d92d is described below

commit c97d92dc8f909912b4d526693190f22222987b3a
Author: Gary D. Gregory <[email protected]>
AuthorDate: Fri Jun 20 08:13:00 2025 -0400

    Update deprecated call in
    org.apache.commons.jci2.examples.commandline.CommandlineCompiler.
---
 .../apache/commons/jci2/examples/commandline/CommandlineCompiler.java  | 2 +-
 src/changes/changes.xml                                                | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/examples/src/main/java/org/apache/commons/jci2/examples/commandline/CommandlineCompiler.java
 
b/examples/src/main/java/org/apache/commons/jci2/examples/commandline/CommandlineCompiler.java
index 13eb13f..39a5bb1 100644
--- 
a/examples/src/main/java/org/apache/commons/jci2/examples/commandline/CommandlineCompiler.java
+++ 
b/examples/src/main/java/org/apache/commons/jci2/examples/commandline/CommandlineCompiler.java
@@ -117,7 +117,7 @@ public final class CommandlineCompiler {
                 final String[] values = option.getValues();
                 final URL[] urls = new URL[values.length];
                 for (int i = 0; i < urls.length; i++) {
-                    urls[i] = new File(values[i]).toURL();
+                    urls[i] = new File(values[i]).toURI().toURL();
                 }
                 classloader = new URLClassLoader(urls);
             } else if ("source".equals(option.getOpt())) {
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c4af20e..d12b0d1 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -83,6 +83,9 @@ The <action> type attribute can be add,update,fix,remove.
       <action dev="ggregory" type="fix" due-to="Arturo Bernal, Sebb, Gary 
Gregory">
         Use try-with-resources #181.
       </action> 
+      <action dev="ggregory" type="fix" due-to="Gary Gregory">
+        Update deprecated call in 
org.apache.commons.jci2.examples.commandline.CommandlineCompiler.
+      </action>
       <!-- UPDATE -->
       <action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">
         Bump commons-parent from 56 to 85 #36, #37, #72, #97, #73 #125, #128, 
#134, #138, #141, #149, #194.

Reply via email to