Skip to content

java LITE_RUNTIME deperacation warning even though following the java lite runtime docs #6489

@m0hamed

Description

@m0hamed

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:

  1. Have a .proto with optimize_for = LITE_RUNTIME
  2. Compile into java using protoc --java_out=lite:${OUTPUT_DIR}
  3. 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

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions