zserio icon indicating copy to clipboard operation
zserio copied to clipboard

Parameter `-withWriterCode` is not enabled by default for java generator.

Open RobertBudzko-TomTom opened this issue 4 years ago • 1 comments

Without explicitly stating withWriterCode java code generated yielded classes not implemented fully compared to assigned interfaces. Documentation states writer code is enabled by default.

My command was: -withoutSqlCode -withoutPubsubCode -withSvgDiagrams -withRangeCheckCode -xml ${basedir}/${codegen.sources.dir} -java ${basedir}/${codegen.sources.dir} -doc ${basedir}/${codegen.doc.dir} -src ${basedir}/${codegen.zserio.root} -setTopLevelPackage nds ${codegen.zserio.file}.

RobertBudzko-TomTom avatar Nov 23 '21 09:11 RobertBudzko-TomTom

We have tried your command with this schema and it seems that it works. At least, Java generated classes have writer interface (e.g. write method).

The problem won't be probably so straightforward. Could you please check the schema above if it works as expected? Thanks!

mikir avatar Nov 23 '21 15:11 mikir