[
https://issues.apache.org/jira/browse/JDO-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617019#action_12617019
]
Richard Schilling commented on JDO-582:
---------------------------------------
I think I need some clarification on what the test case should be looking for:
In text following text appears in the original description:
"and the argument should be a Throwable[]. Otherwise, it's treated as a
failed object instead of nested exceptions."
I'm wondering what argument is being referred to here. If it's the argument
passed to the JDOFatalUserException constructor (line 821 in JDOHelper.java),
then we are guaranteed it's an array of Throwable[] because only Throwable
classes are added to the ArrayList, from wich the Throwable[] array is
extracted and passed to the JDOFatalUserException constructor.
Thoughts anyone?
> 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.