camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8366) Close used iterator if RuntimeException is thrown at next()/hasNext() in Splitter
Date Wed, 18 Feb 2015 07:20:11 GMT

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

Claus Ibsen resolved CAMEL-8366.
--------------------------------
    Resolution: Fixed

Thanks for reporting an the PR

> Close used iterator if RuntimeException is thrown at next()/hasNext() in Splitter
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-8366
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8366
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.14.1
>            Reporter: Tomohisa Igarashi
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.14.2, 2.15.0
>
>
> There're some spots using user provided iterator but don't close them if RuntimeException
is thrown during iteration even if it's Closeable . It would be convenient if it is closed
in finally block.
> I immediately found 2, guessing there're some more else:
> https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/processor/Splitter.java#L232-L234
> https://github.com/apache/camel/blob/master/camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java#L267-L347



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message