You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2018/01/22 17:40:00 UTC

[jira] [Assigned] (ARTEMIS-1406) FindBugs: impossible instanceof in exception handler in MappedSequentialFile.java

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

Justin Bertram reassigned ARTEMIS-1406:
---------------------------------------

    Assignee: Justin Bertram

> 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
>
> {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)