[kaffe] BUG: ArrayStoreException when storing arrays in multi-dimensional arrays

Mark Wielaard mark at klomp.org
Tue Dec 7 12:13:30 PST 2004


Hi,

The following program:

public class Test
{
  static final char[] initCharArray =
      new char[] {'\u0000', '\u0000', '\u0000', '\u0000', '\u0000',
'\u0000'};
  public static final char[][][][] charArray_length =
      new char[1][1][1][];

  public static void main(String[] args)
  {
    charArray_length[0][0][0] = initCharArray;
  }
}

gives:

java.lang.ArrayStoreException: can't store `[C' in `[[[C'
   at Test.main (Test.java:10)

But this is a perfectly valid store.

Hope someone immediately knows where in the source this array store is
done.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://kaffe.org/pipermail/kaffe/attachments/20041207/7eb8810e/attachment-0002.pgp 


More information about the kaffe mailing list