db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig Russell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JDO-582) Test case needed for JDOFatalUserException nested exception argument needs cast to Throwable[]
Date Fri, 12 Sep 2008 22:15:44 GMT

     [ https://issues.apache.org/jira/browse/JDO-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Craig Russell resolved JDO-582.
-------------------------------

    Resolution: Fixed

Thanks to a lot of work by Richard Schilling, this is now fixed and checked in to svn. 

JDO-582 Fixed bugs in JDOHelper implementation:
If implementation returns null to getPersistenceManagerFactory, JDOHelper now throws JDOFatalInternalException.
JDOHelperTest adds a new test case for the above failure.

If implementation fails to return a valid PersistenceManagerFactory, JDOHelper now catches
all exceptions
and if no implementation can be found, throws JDOFatalException with all failed efforts.
JDOHelperConfigTest adds a new test case for the above failure.

Bundle.properties message EXC_GetPMFNoSuchMethod was incorrect.
JDOHelper used the wrong bundle message if no implementation of getPersistenceManagerFactory(Map).

svn commit trunk/api2/test/schema/jdoconfig/Negative09 trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java
trunk/api2/test/java/javax/jdo/JDOHelperTest.java trunk/api2/src/java/javax/jdo/JDOHelper.java
trunk/api2/src/java/javax/jdo/Bundle.properties
Sending        trunk/api2/src/java/javax/jdo/Bundle.properties
Sending        trunk/api2/src/java/javax/jdo/JDOHelper.java
Sending        trunk/api2/test/java/javax/jdo/JDOHelperConfigTest.java
Sending        trunk/api2/test/java/javax/jdo/JDOHelperTest.java
Adding         trunk/api2/test/schema/jdoconfig/Negative09
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9a
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9a/META-INF
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9a/META-INF/jdoconfig.xml
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9a/META-INF/services
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9a/META-INF/services/javax.jdo.PersistenceManagerFactory
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9b
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9b/META-INF
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9b/META-INF/services
Adding         trunk/api2/test/schema/jdoconfig/Negative09/9b/META-INF/services/javax.jdo.PersistenceManagerFactory
Transmitting file data .......
Committed revision 694815.



> Test case needed for JDOFatalUserException nested exception argument needs cast to Throwable[]
> ----------------------------------------------------------------------------------------------
>
>                 Key: JDO-582
>                 URL: https://issues.apache.org/jira/browse/JDO-582
>             Project: JDO
>          Issue Type: Bug
>          Components: api2, api2-legacy
>            Reporter: Erik Bengtson
>            Assignee: Richard Schilling
>             Fix For: JDO 2 maintenance release 2
>
>         Attachments: 20080911-jdo-582-combined.patch, 20080911-jdo-582-JDOHelper.patch,
20080911-jdo-582-JDOHelperConfigTest.patch, 20080911-jdo-582-Negative09.patch, 20080911-jdo-582.patch,
20080912-jdo-582-combined.patch, 20080912-jdo-582-JDOHelper.patch, 20080912-jdo-582-JDOHelperConfigTest.patch,
estedExceptionJDOHelper.patch, Negative09.zip
>
>
> After collecting exceptions from invoking getPersistenceManagerFactory on all implementations,
if no implementation has succeeded in returning a PersistenceManagerFactory, an exception
is thrown, and the argument should be a Throwable[]. Otherwise, it's treated as a failed object
instead of nested exceptions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message