This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/308: gcj does not check exceptions for Object.clone()
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/308: gcj does not check exceptions for Object.clone()
- From: bryce at albatross dot co dot nz
- Date: 9 Aug 2000 10:34:31 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 308
>Category: gcj
>Synopsis: gcj does not check exceptions for Object.clone()
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 03:40:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
any
>Description:
Object.clone() can throw the checked exception
CloneNotSupportException. It is thus illegal to call clone()
without catching or throwing this exception. But gcj does
not detect this error.
class Clone
{
Object a()
{
return super.clone();
}
Object b(Object obj)
{
return obj.clone();
}
}
>How-To-Repeat:
compile
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: