You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/11/08 11:40:26 UTC

(commons-jexl) branch master updated (30b1bfd9 -> 9b4d34ad)

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

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


    from 30b1bfd9 Javadoc
     new 5017507c Javadoc
     new 3753c561 Add missing test paths
     new 9b4d34ad Prepare for the next release candidate

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CONTRIBUTING.md                                    |  2 +-
 RELEASE-NOTES.txt                                  | 52 ++++++++++++++++++++++
 src/changes/changes.xml                            |  2 +-
 .../org/apache/commons/jexl3/package-info.java     | 32 +++++++------
 .../org/apache/commons/jexl3/ArrayTypeTest.java    |  4 ++
 5 files changed, 76 insertions(+), 16 deletions(-)


(commons-jexl) 01/03: Javadoc

Posted by gg...@apache.org.
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-jexl.git

commit 5017507c83c2634bdc8b9f6dcfe4161e6387cf7b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 8 06:26:02 2025 -0500

    Javadoc
---
 .../org/apache/commons/jexl3/package-info.java     | 32 ++++++++++++----------
 1 file changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/package-info.java b/src/main/java/org/apache/commons/jexl3/package-info.java
index d8e2deb1..61453659 100644
--- a/src/main/java/org/apache/commons/jexl3/package-info.java
+++ b/src/main/java/org/apache/commons/jexl3/package-info.java
@@ -101,24 +101,28 @@
  * <pre>
  * // test outer class
  * public static class Froboz {
- * int value;
- * public Froboz(int v) { value = v; }
- * public void setValue(int v) { value = v; }
- * public int getValue() { return value; }
+ *     int value;
+ *     public Froboz(int v) { value = v; }
+ *     public void setValue(int v) { value = v; }
+ *     public int getValue() { return value; }
  * }
+ *
  * // test inner class
  * public static class Quux {
- * String str;
- * Froboz froboz;
- * public Quux(String str, int fro) {
- * this.str = str;
- * froboz = new Froboz(fro);
- * }
- * public Froboz getFroboz() { return froboz; }
- * public void setFroboz(Froboz froboz) { this.froboz = froboz; }
- * public String getStr() { return str; }
- * public void setStr(String str) { this.str = str; }
+ *     String str;
+ *     Froboz froboz;
+ *
+ *     public Quux(String str, int fro) {
+ *       this.str = str;
+ *       froboz = new Froboz(fro);
+ *     }
+ *
+ *     public Froboz getFroboz() { return froboz; }
+ *     public void setFroboz(Froboz froboz) { this.froboz = froboz; }
+ *     public String getStr() { return str; }
+ *     public void setStr(String str) { this.str = str; }
  * }
+ *
  * // test API
  * JexlEngine jexl = new JexlBuilder().create();
  * Quux quux = jexl.newInstance(Quux.class, "xuuq", 100);


(commons-jexl) 03/03: Prepare for the next release candidate

Posted by gg...@apache.org.
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-jexl.git

commit 9b4d34ad1a0f20e1f81b70700748fa7f5d61c3ea
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 8 11:40:20 2025 +0000

    Prepare for the next release candidate
---
 CONTRIBUTING.md         |  2 +-
 RELEASE-NOTES.txt       | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 src/changes/changes.xml |  2 +-
 3 files changed, 54 insertions(+), 2 deletions(-)

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d26c2acb..8a3d257d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -69,7 +69,7 @@ Making Changes
 + Respect the original code style:
   + Only use spaces for indentation; you can check for unnecessary whitespace with `git diff` before committing.
   + Create minimal diffs - disable _On Save_ actions like _Reformat Source Code_ or _Organize Imports_. If you feel the source code should be reformatted create a separate PR for this change first.
-+ Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible but is a best practice.
++ Write unit tests that match behavioral changes, where the tests fail if the changes to the runtime are not applied. This may not always be possible but is a best-practice.
 Unit tests are typically in the `src/test/java` directory.
 + Run a successful build using the default [Maven](https://maven.apache.org/) goal with `mvn`; that's `mvn` on the command line by itself.
 + Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt
index 7cc353d7..fdaf0543 100644
--- a/RELEASE-NOTES.txt
+++ b/RELEASE-NOTES.txt
@@ -36,6 +36,58 @@ o          Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.19.0 #355. Tha
 o          Bump com.google.code.gson:gson from 2.13.1 to 2.13.2 #371. Thanks to Gary Gregory, Dependabot. 
 
 
+Historical list of changes: https://commons.apache.org/proper/commons-jexl/changes.html
+
+For complete information on Apache Commons JEXL, including instructions on how to submit bug reports,
+patches, or suggestions for improvement, see the Apache Commons JEXL website:
+
+https://commons.apache.org/proper/commons-jexl/
+
+Download page: https://commons.apache.org/proper/commons-jexl/download_jexl.cgi
+
+Have fun!
+-Apache Commons Team
+
+------------------------------------------------------------------------------
+
+Apache Commons JEXL 3.6.0 Release Notes
+---------------------------------------
+
+The Apache Commons JEXL team is pleased to announce the release of Apache Commons JEXL 3.6.0.
+
+Introduction
+------------
+
+Apache Commons JEXL is a library that facilitates the implementation of scripting features in
+        applications and frameworks written in Java.
+
+This is a feature and maintenance release. Java 8 or later is required.
+
+New features
+------------
+
+o JEXL-440:  Switch statement & expressions. 
+
+Fixed Bugs
+----------
+
+o JEXL-447:  Regression in script-defined functions. Thanks to William Price. 
+o JEXL-446:  ClassTool module inspection is too strict. Thanks to William Price. 
+o JEXL-442:  Local variables are not resolved in interpolation string expression. Thanks to Xu Pengcheng. 
+o JEXL-441:  Tokenization error if "\n" in template expression. Thanks to Xu Pengcheng. 
+o JEXL-439:  When using reference capture, incorrect scoping when local variable redefines a captured symbol. Thanks to Xu Pengcheng. 
+o JEXL-437:  Semicolons not actually optional between function calls on separate lines. Thanks to William Price. 
+o          org.apache.commons.jexl3.internal.introspection.AbstractExecutor.initMarker(Class, String, Class...) throws IllegalArgumentException instead of Exception. Thanks to Gary Gregory. 
+o          Reuse BigInteger constants instead of creating new instances in JexlArithmetic.toBigInteger(Object). Thanks to Gary Gregory. 
+
+Changes
+-------
+
+o          Bump org.apache.commons:commons-parent from 81 to 91 #344, #368, #372. Thanks to Gary Gregory, Dependabot. 
+o          Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.19.0 #355. Thanks to Gary Gregory, Dependabot. 
+o          Bump com.google.code.gson:gson from 2.13.1 to 2.13.2 #371. Thanks to Gary Gregory, Dependabot. 
+
+
 Historical list of changes: https://commons.apache.org/proper/commons-jexl/changes.html
 
 For complete information on Apache Commons JEXL, including instructions on how to submit bug reports,
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 82ec89f8..b74212e3 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -27,7 +27,7 @@
         <author email="dev@commons.apache.org">Commons Developers</author>
     </properties>
     <body>
-        <release version="3.6.0" date="YYYY-MM-DD"
+        <release version="3.6.0" date="2025-11-08"
                  description="This is a feature and maintenance release. Java 8 or later is required.">
             <!-- FIX -->
             <action dev="henrib" type="fix" issue="JEXL-447" due-to="William Price">


(commons-jexl) 02/03: Add missing test paths

Posted by gg...@apache.org.
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-jexl.git

commit 3753c561cf6a9ab21242d7449aa5e6096bc35b24
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 8 06:32:20 2025 -0500

    Add missing test paths
---
 src/test/java/org/apache/commons/jexl3/ArrayTypeTest.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/java/org/apache/commons/jexl3/ArrayTypeTest.java b/src/test/java/org/apache/commons/jexl3/ArrayTypeTest.java
index c2f1cfde..ad8e618b 100644
--- a/src/test/java/org/apache/commons/jexl3/ArrayTypeTest.java
+++ b/src/test/java/org/apache/commons/jexl3/ArrayTypeTest.java
@@ -19,6 +19,7 @@ package org.apache.commons.jexl3;
 import static org.junit.jupiter.api.Assertions.assertEquals;
 import static org.junit.jupiter.api.Assertions.assertFalse;
 import static org.junit.jupiter.api.Assertions.assertInstanceOf;
+import static org.junit.jupiter.api.Assertions.assertNull;
 import static org.junit.jupiter.api.Assertions.assertTrue;
 
 import java.io.Serializable;
@@ -97,6 +98,9 @@ class ArrayTypeTest {
     // intersect ClassC, ClassX -> Class0
     Class<?> inter = ClassMisc.getCommonSuperClass(ClassC.class, ClassX.class);
     assertEquals(Class0.class, inter);
+    assertEquals(Object.class, ClassMisc.getCommonSuperClass(ClassC.class, Object.class));
+    assertNull(ClassMisc.getCommonSuperClass(ClassC.class, null));
+    assertNull(ClassMisc.getCommonSuperClass(null, ClassC.class));
 
     // intersect ClassC, ClassB -> ClassB
     inter = ClassMisc.getCommonSuperClass(ClassC.class, ClassB.class);