This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: super.clone() and CloneNotSupportedException
- From: Tom Tromey <tromey at redhat dot com>
- To: gnustuff at thisiscool dot com
- Cc: Per Bothner <per at bothner dot com>, java-patches at gcc dot gnu dot org
- Date: 20 Jul 2003 19:48:02 -0600
- Subject: Re: Patch: super.clone() and CloneNotSupportedException
- References: <1ZPME9F03ZSNNJ32WV4XHG9761WVQLHB.3f1ac91c@p733>
- Reply-to: tromey at redhat dot com
>>>>> "Mohan" == Mohan Embar <gnustuff@thisiscool.com> writes:
Mohan> void gnu::gcj::xlib::WMSizeHints::finalize()
Mohan> {
Mohan> delete structure;
Mohan> }
Mohan> ----------------------------------8<-----------------------------------
Mohan> In the finalize() method above, I don't see how "delete structure"
Mohan> could be correct without first casting it to an (XSizeHints*).
I'd imagine it "works" since XSizeHints doesn't have a destructor.
But, yeah, it seems like a buglet.
Tom