You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previous version so DSL-JSON would correctly map byte[] to BinaryConverter. In the latest 2.0.0 release the annotation processor creates code that won't compile. It tries to create a JsonReader/Writer of type <byte>, not <byte[]> which fails to compile with the following error:
/.../dsl-json/examples/MavenJava/target/generated-sources/annotations/com/dslplatform/maven/_Example$Model_DslJsonConverter.java:163:66
java: unexpected type
required: reference
found: byte
You can test this by adding public byte[] byteArray; to Model in the MavenJava -> Example.java file.
Previous versions of DSL json would create code of the following:
private final com.dslplatform.json.JsonWriter.WriteObject<byte> writer_byteArray;
This can probably be worked around by assigning a converter for the type, but would prefer not to as this should work out of the box with the annotation processor.
The text was updated successfully, but these errors were encountered:
Previous version so DSL-JSON would correctly map byte[] to BinaryConverter. In the latest 2.0.0 release the annotation processor creates code that won't compile. It tries to create a JsonReader/Writer of type
<byte>
, not<byte[]>
which fails to compile with the following error:You can test this by adding
public byte[] byteArray;
to Model in theMavenJava
->Example.java
file.Previous versions of DSL json would create code of the following:
2.0.0 produces the following:
This can probably be worked around by assigning a converter for the type, but would prefer not to as this should work out of the box with the annotation processor.
The text was updated successfully, but these errors were encountered: