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
java.lang.IllegalArgumentException: argument type mismatch #127
Comments
I'm unable to reproduce this ;( I pasted your code as is into the Scala example at: https://github.com/ngs-doo/dsl-json/blob/master/examples/Scala/src/main/scala/com/dslplatform/json/example/Example.scala and test, but it worked both times. Which Java/Scala versions are you using? |
I think it doesn't not depend on Java/Scala version... Just need to uncomment this line, it's implementation here, and run the test. Top of the stack trace:
|
I see that it complains about argument signature (ArrayBuffer vs IndexedSeq) It should work now in your benchmark with latest commit: 8b74480 |
May it be due this workaround which was required to get encoders for arrays of primitives? |
The link is not working, but I figured out that it was not working because the failing test was using immutable.IndexedSeq while just IndexedSeq works. Released a new version, hopefully everything should work now :) |
Thanks a lot! I have removed that "workaround" and now the benchmark for Google Maps API parses But the same exception throws now in the |
:( Also I see that it's "failing" on the write test due to encoding empty collections. You can avoid that by using |
Actually no, this does not work yet in Scala ;( |
v1.9.3 released |
Thank you! I will try it tomorrow. BTW, what do you think about merging of Java and Scala projects to the one multi-project with the same version, and setting up a release automation by the git tag? Here is an example how it can be done by sbt. Possible it is also can be automated by gradle or maven plugins ... |
Yes, that would be nice but it would need to be Maven instead of SBT ;( I didn't want to invest time in looking up how to setup Scala project with Maven ;( But I would prefer it was setup that way. |
I have tested with v1.9.3 No more |
Code to reproduce:
The text was updated successfully, but these errors were encountered: