[
https://issues.apache.org/jira/browse/ARTEMIS-1406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Justin Bertram resolved ARTEMIS-1406.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.5.0
> FindBugs: impossible instanceof in exception handler in
> MappedSequentialFile.java
> ---------------------------------------------------------------------------------
>
> Key: ARTEMIS-1406
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1406
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.4.0
> Reporter: Jiri Daněk
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.5.0
>
>
> {noformat}
> 360 @Override
> 361 public void renameTo(String newFileName) throws Exception {
> 362 try {
> 363 close();
> 364 } catch (Exception e) {
>
> CID 1418586 (#1 of 1): BC: Bad casts of object references
> (FB.BC_IMPOSSIBLE_INSTANCEOF)
> 1. defect: instanceof will always return false, since a RuntimeException
> can't be a java.io.IOException.
> 365 if (e instanceof IOException) {
> 366 factory.onIOError(new ActiveMQIOErrorException(e.getMessage(),
> e), e.getMessage(), this);
> 367 }
> 368 throw e;
> 369 }
> {noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)