This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: super.clone() and CloneNotSupportedException


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]