Alvaro Polo created FLUME-1367:
----------------------------------

             Summary: LifecycleException isn't RuntimeException, but 
LifecycleAware operations does not declare it in their throws clause
                 Key: FLUME-1367
                 URL: https://issues.apache.org/jira/browse/FLUME-1367
             Project: Flume
          Issue Type: Bug
    Affects Versions: v1.2.0
            Reporter: Alvaro Polo


As Javadoc indicates, the {{start()}} and {{stop()}} methods of 
{{LifecycleAware}} interface can throw a {{LifecycleException}} when an error 
occurs in such operations. Nevertheless {{LifecycleException}} is not a runtime 
exception, so {{start()}} and {{stop()}} methods cannot throw it as it is not 
present in their throws clause. 

Two ways to fix it.
* Make {{LifecycleException}} to extend {{RuntimeException}} rather than 
{{Exception}}.
* Include {{LifecycleException}} in the throws clause of {{start()}} and 
{{stop()}} methods for {{LifecycleAware}} interface. 


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to