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-beanutils.git

commit 2cdff8fa28f2989fb24e40a04b8f39376dfb4c04
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sun Jul 20 16:45:09 2025 -0400

    Fix typo in exception message throws from
    org.apache.commons.beanutils2.PropertyUtilsBean.setMappedProperty(Object,
    String, String, Object)
---
 src/changes/changes.xml                                           | 2 ++
 .../java/org/apache/commons/beanutils2/PropertyUtilsBean.java     | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 9780c6e1..18d5b1d9 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -29,6 +29,8 @@
   <body>
     <release version="2.0.0-M3" date="YYYY-MM-DD" description="This is a major 
release and requires Java 8.">
       <!-- FIX -->
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix typo in log 
event message in 
org.apache.commons.beanutils2.MethodUtils.setMethodAccessible(Method).</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix typo in 
exception message throws from 
org.apache.commons.beanutils2.PropertyUtilsBean.setMappedProperty(Object, 
String, String, Object).</action>
       <!-- ADD -->
       <!-- UPDATE -->
       <action type="update" dev="ggregory" due-to="Gary Gregory, 
Dependabot">Bump org.apache.commons:commons-lang3 from 3.17.0 to 3.18.0 
#357.</action>
diff --git a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java 
b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
index f16f06e3..886ae9dc 100644
--- a/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
+++ b/src/main/java/org/apache/commons/beanutils2/PropertyUtilsBean.java
@@ -390,7 +390,7 @@ public class PropertyUtilsBean {
         // Otherwise, the underlying property must be an array
         final Method readMethod = getReadMethod(bean.getClass(), descriptor);
         if (readMethod == null) {
-            throw new NoSuchMethodException("Property '" + name + "' has no " 
+ "getter method on bean class '" + bean.getClass() + "'");
+            throw new NoSuchMethodException("Property '" + name + "' has no 
getter method on bean class '" + bean.getClass() + "'");
         }
 
         // Call the property getter and return the value
@@ -792,7 +792,7 @@ public class PropertyUtilsBean {
         }
 
         if (resolver.isIndexed(propertyName) || 
resolver.isMapped(propertyName)) {
-            throw new IllegalArgumentException("Indexed or mapped properties 
are not supported on" + " objects of type Map: " + propertyName);
+            throw new IllegalArgumentException("Indexed or mapped properties 
are not supported on objects of type Map: " + propertyName);
         }
 
         return bean.get(propertyName);
@@ -1399,7 +1399,7 @@ public class PropertyUtilsBean {
             Method mappedWriteMethod = ((MappedPropertyDescriptor) 
descriptor).getMappedWriteMethod();
             mappedWriteMethod = 
MethodUtils.getAccessibleMethod(bean.getClass(), mappedWriteMethod);
             if (mappedWriteMethod == null) {
-                throw new NoSuchMethodException("Property '" + name + "' has 
no mapped setter method" + "on bean class '" + bean.getClass() + "'");
+                throw new NoSuchMethodException("Property '" + name + "' has 
no mapped setter method on bean class '" + bean.getClass() + "'");
             }
             if (LOG.isTraceEnabled()) {
                 final String valueClassName = value == null ? "<null>" : 
value.getClass().getName();
@@ -1537,7 +1537,7 @@ public class PropertyUtilsBean {
         }
 
         if (resolver.isIndexed(propertyName) || 
resolver.isMapped(propertyName)) {
-            throw new IllegalArgumentException("Indexed or mapped properties 
are not supported on" + " objects of type Map: " + propertyName);
+            throw new IllegalArgumentException("Indexed or mapped properties 
are not supported on objects of type Map: " + propertyName);
         }
 
         bean.put(propertyName, value);

Reply via email to