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: Jeff Sturm <jsturm at one-point dot com>
- To: Mohan Embar <gnustuff at thisiscool dot com>
- Cc: java-patches at gcc dot gnu dot org, Anthony Green <green at redhat dot com>
- Date: Sun, 20 Jul 2003 10:45:29 -0400 (EDT)
- Subject: Re: Patch: super.clone() and CloneNotSupportedException
On Sun, 20 Jul 2003, Mohan Embar wrote:
> As an aside, is there any way to copy a gnu.gcj.RawData instance in
> Java without using clone()
You cannot invoke clone() on a RawData field, or any other methods for
that matter. There's no such thing as a "RawData instance", and the field
may not even contain a pointer at all.
You can of course use memcpy() from native code.
Jeff