Jiri Danek created ARTEMIS-1406: ----------------------------------- Summary: 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 Danek
{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 (v6.4.14#64029)