Skip to content

Replace deprecated FileDescriptor.Syntax with Edition API#115

Merged
adamw7 merged 2 commits into
mainfrom
claude/fix-deprecated-filedescriptor-otXjt
Feb 10, 2026
Merged

Replace deprecated FileDescriptor.Syntax with Edition API#115
adamw7 merged 2 commits into
mainfrom
claude/fix-deprecated-filedescriptor-otXjt

Conversation

@adamw7
Copy link
Copy Markdown
Owner

@adamw7 adamw7 commented Feb 10, 2026

FileDescriptor.Syntax and getSyntax() are deprecated in protobuf-java.
Use FileDescriptor.getEdition() with Edition.EDITION_PROTO2 instead.

https://claude.ai/code/session_01GuS3gDAhyroj3CfeC6bF7c

FileDescriptor.Syntax and getSyntax() are deprecated in protobuf-java.
Use FileDescriptor.getEdition() with Edition.EDITION_PROTO2 instead.

https://claude.ai/code/session_01GuS3gDAhyroj3CfeC6bF7c
FileDescriptor.getEdition() returns EDITION_UNKNOWN for proto2 files
compiled with protoc 3.x since the edition field is not populated.
Use FileDescriptorProto.getSyntax() which returns the syntax string
directly ("proto2", "proto3", "editions") and is not deprecated.

https://claude.ai/code/session_01GuS3gDAhyroj3CfeC6bF7c
@adamw7 adamw7 merged commit 23aa501 into main Feb 10, 2026
2 checks passed
@adamw7 adamw7 deleted the claude/fix-deprecated-filedescriptor-otXjt branch February 11, 2026 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants