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

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


The following commit(s) were added to refs/heads/1.X by this push:
     new 63f64599 Restore unreleased binary compatibility change
63f64599 is described below

commit 63f64599338feb9d83b667c540d1cef5bcdda7d4
Author: Gary D. Gregory <[email protected]>
AuthorDate: Wed Dec 25 17:52:39 2024 -0500

    Restore unreleased binary compatibility change
    
    - Remove old comment
---
 pom.xml                                                          | 7 -------
 .../java/org/apache/commons/beanutils/ConversionException.java   | 9 +++++++++
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/pom.xml b/pom.xml
index 4a920567..a9fdea99 100644
--- a/pom.xml
+++ b/pom.xml
@@ -139,13 +139,6 @@
                 <tarLongFileMode>gnu</tarLongFileMode>
             </configuration>
         </plugin>
-       <!-- Disabled as it is not Java 6 compatible
-      <plugin>
-        <groupId>com.github.siom79.japicmp</groupId>
-        <artifactId>japicmp-maven-plugin</artifactId>
-        <version>${commons.japicmp.version}</version>
-      </plugin>
-      -->
       </plugins>
       <pluginManagement>
         <plugins>
diff --git 
a/src/main/java/org/apache/commons/beanutils/ConversionException.java 
b/src/main/java/org/apache/commons/beanutils/ConversionException.java
index da055ef7..e6d32884 100644
--- a/src/main/java/org/apache/commons/beanutils/ConversionException.java
+++ b/src/main/java/org/apache/commons/beanutils/ConversionException.java
@@ -27,6 +27,13 @@ public class ConversionException extends RuntimeException {
 
     private static final long serialVersionUID = 1L;
 
+    /**
+     * The cause, deprecated.
+     *
+     * @deprecated Use {@link Throwable#getCause()}}.
+     */
+    protected Throwable cause;
+    
     /**
      * Constructs a new exception with the specified message.
      *
@@ -44,6 +51,7 @@ public class ConversionException extends RuntimeException {
      */
     public ConversionException(final String message, final Throwable cause) {
         super(message, cause);
+        this.cause = cause;
     }
 
     /**
@@ -53,6 +61,7 @@ public class ConversionException extends RuntimeException {
      */
     public ConversionException(final Throwable cause) {
         super(cause);
+        this.cause = cause;
     }
 
 }

Reply via email to