> On Sat, 19 Oct 2002, Matthew Toseland wrote:
<>
> > Oct 19, 2002 11:52:35 AM (freenet.node.Node, QThread-9): Error while 
> > receiving message freenet.Message: ClientPut @cb2bc634b2ca4d6a in state New 
> > ClientPut @ cb2bc634b2ca4d6a
> > java.lang.IllegalAccessError: tried to access method 
> > java.lang.Object.clone()Ljava/lang/Object; from class freenet.keys.SVK

It looks like Sun JDK 1.4.1 has issues with byte[].clone(). I don't see 
how that can be OK, the JLS (section 10.7) makes it pretty clear that 
cloning an array is fine. 

Either way, I checked in a patch that works around it using good old
arraycopy. Personally I never use the clone() method - my experience is
it causes nothing but trouble, and you are much better off writing code
to actually copy stuff so you know what you get.

-- 

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
devl mailing list
devl at freenetproject.org
http://hawk.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to