public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/11600] New: CloneNotSupportedException not checked on super.clone()
@ 2003-07-20  1:09 gcc-bugzilla at gcc dot gnu dot org
  2003-07-20  2:32 ` [Bug libgcj/11600] " pinskia at physics dot uc dot edu
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-07-20  1:09 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11600

           Summary: CloneNotSupportedException not checked on super.clone()
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: green at localhost dot localdomain
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

	gcj should complain about the "bad" class, below.  For instance,
ecj says:
1. Error in bad.java (at line 5)
        return super.clone ();
               ^^^^^^^^^^^^^^
Unhandled exception type CloneNotSupportedException

	gcj lets this bad code pass.

Environment:
System: Linux escape 2.4.20-13.9 #1 Mon May 12 10:55:37 EDT 2003 i686 i686 i386 GNU/Linux
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/home/green/tools/FSF/HEAD/i --enable-languages=c,c++,java

How-To-Repeat:
Try compiling this.  It should fail.

public class bad implements Cloneable
{
  public Object clone ()
    {
      return super.clone ();
    }
}


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-08-05 19:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-20  1:09 [Bug java/11600] New: CloneNotSupportedException not checked on super.clone() gcc-bugzilla at gcc dot gnu dot org
2003-07-20  2:32 ` [Bug libgcj/11600] " pinskia at physics dot uc dot edu
2003-07-20 15:41 ` green at redhat dot com
2003-08-05  2:10 ` [Bug java/11600] " tromey at gcc dot gnu dot org
2003-08-05 18:47 ` cvs-commit at gcc dot gnu dot org
2003-08-05 18:48 ` tromey at gcc dot gnu dot org
2003-08-05 19:43 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).