Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrays do not work as constructor parameters #3

Open
advorkovyy opened this issue Nov 14, 2011 · 0 comments
Open

arrays do not work as constructor parameters #3

advorkovyy opened this issue Nov 14, 2011 · 0 comments

Comments

@advorkovyy
Copy link
Collaborator

This example gives IllegalArgumentException:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant