Skip to content

Conversation

@nickita-khylkouski
Copy link

Summary

  • Marked the inverse field in GWT's RegularImmutableBiMap as transient
  • Aligns GWT version with main guava and android versions (which already have transient)
  • Eliminates GWT-RPC serialization warnings about circular references

Motivation

GWT-RPC generates warnings when a Map is used in an RPC service interface because the inverse field creates a circular reference that GWT-RPC attempts to serialize. The field should be marked transient since:

  1. It's a circular reference to the inverse bimap
  2. It can be reconstructed when accessed via inverse()
  3. Main guava and android versions already use transient for this field

Fixes #8168

Testing

  • Standalone serialization tests passed
  • Verified alignment with main guava and android implementations
  • Checked that no other GWT BiMap implementations need similar fixes

The inverse field in GWT's RegularImmutableBiMap was not marked as
transient, causing GWT-RPC serialization warnings about circular
references. This aligns the GWT version with the main guava and
android versions, which already have transient on this field.

Fixes google#8168
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.

Many warnings are generated when a Map is used in an RPC service interface.

1 participant