Skip to content

Treat enum fields as retainable objects.#2717

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_900358217
Open

Treat enum fields as retainable objects.#2717
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_900358217

Conversation

@copybara-service
Copy link
Copy Markdown

Treat enum fields as retainable objects.

This change updates the protobuf runtime to correctly handle enum fields as objects that require retain/release management, especially in non-ARC environments. The isRetainableJavaType function now includes ENUM types, and the TYPE_RETAIN_Enum and TYPE_ASSIGN_Enum macros are updated to perform retain/release operations when ARC is disabled.

This change updates the protobuf runtime to correctly handle enum fields as objects that require retain/release management, especially in non-ARC environments. The `isRetainableJavaType` function now includes `ENUM` types, and the `TYPE_RETAIN_Enum` and `TYPE_ASSIGN_Enum` macros are updated to perform retain/release operations when ARC is disabled.

PiperOrigin-RevId: 900358217
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants