scalastuff/scalabeans — Issue #3: arrays do not work as constructor parameters
Author: advorkovyy
Created: 2011-11-14 21:16:08+00:00
State: open

This example gives IllegalArgumentException:

```scala
case class FixtureWithArray(key:UUID, content:Array[Byte])

val descriptor = descriptorOf[FixtureWithArray]
val builder = descriptor.newBuilder()
builder.set(descriptor("key"),UUID.randomUUID())
builder.set(descriptor("content"),Array.empty[Byte])
val instance = builder.result().asInstanceOf[FixtureWithArray]
```

The problem is that constructor signature has Scala Array[Byte] type, while compile code has Java type byte[] and paranamer cannot find it. Only workaround at the moment is to get rid of all arrays in the constructor.