Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#481 RedundantThrowsCheck fails when list spans multiple lines

_release_4.3
closed
nobody
None
5
2014-10-22
2007-05-07
Tim Vernum
No

When the throws list spans multiple lines, the RedundantThrowsCheck seems to fail.

e.g. With

public void foo() throws BarException , <<NEWLINE>>
    FooException {
 // ...
}

I get "Redundant throws: 'FooException' listed more then one time", which is distinctly untrue.

I'm hoping that's enough info to track it down, but I can try and get a more complete test case together if needs be.

Discussion

  • Tim Vernum
    Tim Vernum
    2007-05-07

    Logged In: YES
    user_id=4727
    Originator: YES

    Sorry, it turns out that my root cause analysis is way off.
    I'm now getting this same problem when it doesn't span multiple lines:

    This code:

    import javax.transaction.NotSupportedException;
    import javax.transaction.SystemException;
    
    // ....
    
        protected void beginTransaction() throws NotSupportedException, SystemException {
            // ...
        }
    

    is raising the same error (this is true for both 4.2 and 4.3)

     
    Last edit: Roman Ivanov 2013-12-08
  • Roman Ivanov
    Roman Ivanov
    2013-12-08

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -2,10 +2,12 @@
    
     e.g. With
    
    +~~~~~~
     public void foo() throws BarException , <<NEWLINE>>
         FooException {
      // ...
     }
    +~~~~~~
    
     I get "Redundant throws: 'FooException' listed more then one time", which is distinctly untrue.
    
     
  • Roman Ivanov
    Roman Ivanov
    2013-12-08

    • status: open --> closed