[ 
https://issues.apache.org/jira/browse/JDO-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617065#action_12617065
 ] 

Michelle Caisse commented on JDO-582:
-------------------------------------

The test needs to provide appropriate set-up to exercise line 821 in JDOHelper. 
This is the line that was fixed by the initial patch on this issue. Given this 
scenario, then a call to ex.getNestedExceptions() will return a non-null value. 
This could be the assertion for the test, that the value is non-null. In the 
current test, the exception returned is one of the variants of JDOUserException 
that was constructed without a nested Throwable array 
(http://db.apache.org/jdo/api21/apidocs/index.html), so 
ex.getNestedExceptions() returns null.

> 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: 20080710-jdo-582.diff, 20080710-jdo-582.diff, 
> estedExceptionJDOHelper.patch
>
>
> 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.

Reply via email to