[jira] Created: (LANG-610) Extend exception handling in ConcurrentUtils to runtime exceptions

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LANG-610) Extend exception handling in ConcurrentUtils to runtime exceptions

ASF GitHub Bot (Jira)
Extend exception handling in ConcurrentUtils to runtime exceptions
------------------------------------------------------------------

                 Key: LANG-610
                 URL: https://issues.apache.org/jira/browse/LANG-610
             Project: Commons Lang
          Issue Type: New Feature
          Components: lang.concurrent.*
            Reporter: Oliver Heger
            Priority: Minor
             Fix For: 3.0


{{ConcurrentUtils}} already has methods for handling {{ExecutionException}}s. So far such exceptions are transformed into {{ConcurrentException}} which is a checked exception.

In modern frameworks there is a tendency to avoid checked exceptions and use runtime exceptions instead (e.g. Spring or Hibernate). Thus it makes sense to provide the transformation to unchecked exceptions, too, to support client code that does not want to deal with checked exceptions.

This is a proposal to introduce a new runtime exception class {{ConcurrentRuntimeException}} and to duplicate the functionality in {{ConcurrentUtils}} related to exception handling to also support the new runtime exception class.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (LANG-610) Extend exception handling in ConcurrentUtils to runtime exceptions

ASF GitHub Bot (Jira)

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

Oliver Heger updated LANG-610:
------------------------------

    Attachment: ConcurrentRuntimeException.patch

Patch contains the new ConcurrentRuntimeException class and the enhancements of ConcurrentUtils including unit tests.

> Extend exception handling in ConcurrentUtils to runtime exceptions
> ------------------------------------------------------------------
>
>                 Key: LANG-610
>                 URL: https://issues.apache.org/jira/browse/LANG-610
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.concurrent.*
>            Reporter: Oliver Heger
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: ConcurrentRuntimeException.patch
>
>
> {{ConcurrentUtils}} already has methods for handling {{ExecutionException}}s. So far such exceptions are transformed into {{ConcurrentException}} which is a checked exception.
> In modern frameworks there is a tendency to avoid checked exceptions and use runtime exceptions instead (e.g. Spring or Hibernate). Thus it makes sense to provide the transformation to unchecked exceptions, too, to support client code that does not want to deal with checked exceptions.
> This is a proposal to introduce a new runtime exception class {{ConcurrentRuntimeException}} and to duplicate the functionality in {{ConcurrentUtils}} related to exception handling to also support the new runtime exception class.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (LANG-610) Extend exception handling in ConcurrentUtils to runtime exceptions

ASF GitHub Bot (Jira)
In reply to this post by ASF GitHub Bot (Jira)

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

Oliver Heger resolved LANG-610.
-------------------------------

    Resolution: Fixed

Patch applied in revision 925818.

> Extend exception handling in ConcurrentUtils to runtime exceptions
> ------------------------------------------------------------------
>
>                 Key: LANG-610
>                 URL: https://issues.apache.org/jira/browse/LANG-610
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.concurrent.*
>            Reporter: Oliver Heger
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: ConcurrentRuntimeException.patch
>
>
> {{ConcurrentUtils}} already has methods for handling {{ExecutionException}}s. So far such exceptions are transformed into {{ConcurrentException}} which is a checked exception.
> In modern frameworks there is a tendency to avoid checked exceptions and use runtime exceptions instead (e.g. Spring or Hibernate). Thus it makes sense to provide the transformation to unchecked exceptions, too, to support client code that does not want to deal with checked exceptions.
> This is a proposal to introduce a new runtime exception class {{ConcurrentRuntimeException}} and to duplicate the functionality in {{ConcurrentUtils}} related to exception handling to also support the new runtime exception class.

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