Title: byte [], int []
oops...I initially looked at the prototype for arraycopy() and saw both src and dst as Object so figured you'd be ok.  Further perusal of the docs state that an ArrayStoreException is thrown when "The src argument and dst argument refer to arrays whose component types are different primitive types".  Back to square 1...
 
rand
 

--------------------------------
Rand Clark
Software Design Engineer
Transoft Networks
a Hewlett-Packard company
805.883.4315
[EMAIL PROTECTED]
--------------------------------

-----Original Message-----
From: Pepelis, Aaron [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 12:06 PM
To: Java - Swing
Subject: RE: byte [], int []

ok, I'll be 100% honest that I don't know how to use this..

can you use primitives?

I did this:

     temp = new int [data.length];

    System.arraycopy(data, 0, temp, 0, data.length);

data is a byte []

temp is a int []

aaron

 

java.lang.ArrayStoreException

at java.lang.System.arraycopy(Native Method)

at COM.ctron.sti.lang.OctetString.getInts(OctetString.java:294)

at COM.ctron.sti.net.dev.smartbits.SMBDevice.sendPacket(SMBDevice.java:64)

at COM.ctron.sti.tests.manhattan.fallback.FallBackTest.runTest(FallBackTest.java:103)

at COM.ctron.sti.tests.manhattan.fallback.FallBackTest.run(FallBackTest.java:49)

at COM.ctron.sti.tdk.MerApp.invokeApp(MerApp.java:701)

at COM.ctron.sti.tests.manhattan.fallback.FallBackTest.main(FallBackTest.java:219)

#

# HotSpot Virtual Machine Error, EXCEPTION_ACCESS_VIOLATION

# Please report this error at

# http://java.sun.com/cgi-bin/bugreport.cgi

#

# Error ID: 4F533F57494E13120E43505002D4

#

piData is NULL

Reply via email to