[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2858) NestableRuntimeException instvar 'cause'

Jakob Braeuchi (JIRA) noreply at atlassian.com
Tue Sep 25 10:48:57 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_28213 ] 

Jakob Braeuchi commented on HHH-2858:
-------------------------------------

that's correct. 
but it doesn't make sense to duplicate it in NestableRuntimeException and it's confusing when debgging.

> NestableRuntimeException instvar 'cause' 
> -----------------------------------------
>
>                 Key: HHH-2858
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2858
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.2.5
>         Environment: all
>            Reporter: Jakob Braeuchi
>            Priority: Minor
>
> The instance variable 'cause' in NestableRuntimeException duplicates the instvar 'cause' in Throwable.
> from Throwable:
>     /**
>      * The throwable that caused this throwable to get thrown, or null if this
>      * throwable was not caused by another throwable, or if the causative
>      * throwable is unknown.  If this field is equal to this throwable itself,
>      * it indicates that the cause of this throwable has not yet been
>      * initialized.
>      *
>      * @serial
>      * @since 1.4
>      */
>     private Throwable cause = this;
> Refactoring NestableRuntimeException should be easy.
> Jakob

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list