Hello,
Protoc generates Java classes that produce warnings upon compilation,
of the form:
warning: [serial] serializable class
com.example.ExampleApp.ExampleMessage has no definition of
serialVersionUID
It looks like it should be easy to fix this problem (e.g. just add
private static final long serialVersionUID = 1L; to each class
definition). I haven't yet investigated whether or not it's possible
to make this change using plugins, but it seems like something that
should be fixed in protoc.
Curiously, I haven't been able to find any other report of this issue,
so it's also a possibility that something is messed up for me in
particular. I run protoc using ant as follows:
<target name="protoc" if="protoc.exists" depends="init">
<apply executable="protoc" failifexecutionfails="true"
relative="true" osfamily="windows">
<arg value="-I=src"/>
<arg value="--java_out=src"/>
<fileset dir="." includes="src/**/*.proto" />
<mapper type="glob" from="*.proto" to="*.java"/>
</apply>
</target>
Everything works great, except for the compile warnings. I use the
latest protoc.
$ protoc --version
libprotoc 2.3.0
Any ideas?
Thanks,
Rob
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to
prot...@googlegroups.com.
To unsubscribe from this group, send email to
protobuf+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.