db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject [db-jdo] 06/07: JDO-582 Argument to JDOFatalUserException needs cast to Throwable[]
Date Fri, 07 May 2021 23:11:39 GMT
This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch origin/2.1
in repository https://gitbox.apache.org/repos/asf/db-jdo.git

commit c16e27adb4d2a794ec3daad10a320069c07a54d4
Author: Craig L Russell <clr@apache.org>
AuthorDate: Sat Mar 15 21:21:11 2008 +0000

    JDO-582 Argument to JDOFatalUserException needs cast to Throwable[]
---
 api2-legacy/src/java/javax/jdo/JDOHelper.java | 3 ++-
 api2/src/java/javax/jdo/JDOHelper.java        | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/api2-legacy/src/java/javax/jdo/JDOHelper.java b/api2-legacy/src/java/javax/jdo/JDOHelper.java
index 7311fea..1b89ead 100644
--- a/api2-legacy/src/java/javax/jdo/JDOHelper.java
+++ b/api2-legacy/src/java/javax/jdo/JDOHelper.java
@@ -737,7 +737,8 @@ public class JDOHelper implements Constants {
         
         throw new JDOFatalUserException(msg.msg(
                 "EXC_GetPMFNoPMFClassNamePropertyOrPUNameProperty"),
-                exceptions.toArray(new Throwable[exceptions.size()]));
+                (Throwable[])
+                    exceptions.toArray(new Throwable[exceptions.size()]));
     }
 
     /** Get a class name from a URL. The URL is from getResources with 
diff --git a/api2/src/java/javax/jdo/JDOHelper.java b/api2/src/java/javax/jdo/JDOHelper.java
index 2df0f4e..f8c695b 100644
--- a/api2/src/java/javax/jdo/JDOHelper.java
+++ b/api2/src/java/javax/jdo/JDOHelper.java
@@ -812,7 +812,8 @@ public class JDOHelper implements Constants {
         
         throw new JDOFatalUserException(msg.msg(
                 "EXC_GetPMFNoPMFClassNamePropertyOrPUNameProperty"),
-                exceptions.toArray(new Throwable[exceptions.size()]));
+                (Throwable[])
+                    exceptions.toArray(new Throwable[exceptions.size()]));
     }
 
     /** Get a class name from a URL. The URL is from getResources with 

Mime
View raw message