Java 18 added additional linter checks as part of https://bugs.openjdk.java.net/browse/JDK-8274336 and https://bugs.openjdk.java.net/browse/JDK-8274335 These additional checks cause generated protobuf code to raise the following compiler warning: "non-transient instance field of a serializable class declared with a non-serializable type" This change fixes the code generation to annotate the generated fields with the necessary suppressions to avoid false positives. All the code generated from src/google/protobuf/*.proto now compiles successfully without serialization warnings in Java 18. fixes #9673pull/10561/head
parent
db38a8c2da
commit
330a94b46a
6 changed files with 11 additions and 3 deletions
Loading…
Reference in new issue