Skip to content

Align J2ObjC enum Swift naming with J2KT and update call-sites. - #2818

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_953473715
Open

Align J2ObjC enum Swift naming with J2KT and update call-sites.#2818
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_953473715

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Jul 24, 2026

Copy link
Copy Markdown

Align J2ObjC enum Swift naming with J2KT and update call-sites.

When using @SwiftName on Java enums, J2ObjC used to swap the Swift names for the typedef NS_ENUM and the class interface compared to J2KT.

This change updates J2ObjC to emit NS_SWIFT_NAME(Name_Enum) on typedef NS_ENUM and NS_SWIFT_NAME(Name) on class interface, matching J2KT.

@copybara-service copybara-service Bot changed the title Switch J2ObjC enum Swift naming. Align J2ObjC enum Swift naming with J2KT and update call-sites. Jul 24, 2026
@copybara-service
copybara-service Bot force-pushed the test_953473715 branch 3 times, most recently from eff0cd8 to a67ec01 Compare July 27, 2026 15:26
When using @SwiftName on Java enums, J2ObjC used to swap the Swift names for the typedef NS_ENUM and the class interface compared to J2KT.

This change updates J2ObjC to emit NS_SWIFT_NAME(Name_Enum) on typedef NS_ENUM and NS_SWIFT_NAME(Name) on class interface, matching J2KT.

PiperOrigin-RevId: 953473715
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.

1 participant