Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#252 Checked exceptions reported as unchecked

release_3.5
closed
nobody
5
2012-10-10
2004-10-07
David Schneider
No

If a method throws a checked exception but the source
file imports an unchecked exception the Redundant
Throws checks incorrectly reports the checked
exception as an unchecked exception. The following
code is an example. In this example Exception is
reported as an unchecked exception.

----- code -------

import java.lang.RuntimeException;

public class UncheckedExceptionBug
{
public void foo(int i) throws Exception
{
}
}

Discussion

  • Oliver Burn
    Oliver Burn
    2004-10-07

    Logged In: YES
    user_id=218824

    This has been fixed in CVS and will be part of the 3.5 release.