You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resolve oneof field name conflicts with imported packages (#1947)
Include oneof field names in conflict detection to properly generate
_root_ prefixes when oneof fields conflict with imported package names.
This fixes issue #1911 where ScalaPB would generate incorrect import
paths for oneof fields that conflict with imported package names.
The fix includes:
- Enhanced conflict detection in DescriptorImplicits.scala to include oneof field names
- Updated ProtobufGenerator.scala to properly handle conflicts when generating imports
- Added comprehensive tests to verify the fix works correctly
- Fixed test file to use correct generated class name (OneofImportConflictTest)
Closes#1911
0 commit comments