From 0788c7c623348a25dd5604d5c84dbdfe22010825 Mon Sep 17 00:00:00 2001 From: Nickita Khylkouski <90287684+nickita-khylkouski@users.noreply.github.com> Date: Tue, 27 Jan 2026 00:07:18 -0800 Subject: [PATCH] ImmutableBiMap: Mark GWT inverse field as transient for GWT-RPC 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 #8168 --- .../super/com/google/common/collect/RegularImmutableBiMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java index 0afe66004da9..0dfb2fc63d86 100644 --- a/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java +++ b/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/RegularImmutableBiMap.java @@ -29,7 +29,7 @@ final class RegularImmutableBiMap extends ImmutableBiMap { static final RegularImmutableBiMap EMPTY = new RegularImmutableBiMap(); - private final ImmutableBiMap inverse; + private final transient ImmutableBiMap inverse; @SuppressWarnings("unchecked") // used only for the empty map, which works for any types RegularImmutableBiMap() {