What version of protobuf and what language are you using?
Version: v3.9.0
Language: Java
What operating system (Linux, Windows, ...) and version?
Linux
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
- Have a .proto with optimize_for = LITE_RUNTIME
- Compile into java using protoc --java_out=lite:${OUTPUT_DIR}
- Get warning about LITE_RUNTIME deprecation and using the javalite plugin
What did you expect to see
No warnings, there is no more separate codegen plugin and now java lite uses protoc directly with the "lite:" prefix to --java_out= (as far as I understand from the lite.md).
What did you see instead?
[libprotobuf WARNING ../../third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc:242] The optimize_for = LITE_RUNTIME option is no longer supported by protobuf Java code generator and is ignored--protoc will always generate full runtime code for Java. To use Java Lite runtime, users should use the Java Lite plugin instead. See:
https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
Anything else we should know about your project / environment
What version of protobuf and what language are you using?
Version: v3.9.0
Language: Java
What operating system (Linux, Windows, ...) and version?
Linux
What runtime / compiler are you using (e.g., python version or gcc version)
N/A
What did you do?
Steps to reproduce the behavior:
What did you expect to see
No warnings, there is no more separate codegen plugin and now java lite uses protoc directly with the "lite:" prefix to --java_out= (as far as I understand from the lite.md).
What did you see instead?
[libprotobuf WARNING ../../third_party/protobuf/src/google/protobuf/compiler/java/java_file.cc:242] The optimize_for = LITE_RUNTIME option is no longer supported by protobuf Java code generator and is ignored--protoc will always generate full runtime code for Java. To use Java Lite runtime, users should use the Java Lite plugin instead. See:
https://github.com/protocolbuffers/protobuf/blob/master/java/lite.md
Anything else we should know about your project / environment