[Bug java/20978] New: Failure to detect unhandled exception
mckinlay at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Apr 12 20:23:00 GMT 2005
In some cases GCJ fails to detect unhandled exceptions. In the code below, the
method x() is invalid because FileChannel.close() can throw an IOException. GCJ
should report an error stating that the exception must be caught or declared to
be thrown.
import java.nio.channels.*;
public class FCIO
{
FileChannel fc;
public void x()
{
fc.close();
}
}
--
Summary: Failure to detect unhandled exception
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckinlay at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20978
More information about the Java-prs
mailing list