diff --git a/android/guava-tests/test/com/google/common/base/ConverterTest.java b/android/guava-tests/test/com/google/common/base/ConverterTest.java index c787ef004c40..87e93282b3a7 100644 --- a/android/guava-tests/test/com/google/common/base/ConverterTest.java +++ b/android/guava-tests/test/com/google/common/base/ConverterTest.java @@ -19,6 +19,7 @@ import static com.google.common.base.Functions.toStringFunction; import com.google.common.annotations.GwtCompatible; +import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.primitives.Longs; @@ -29,7 +30,7 @@ import junit.framework.TestCase; /** Unit tests for {@link Converter}. */ -@GwtCompatible +@GwtCompatible(emulated = true) public class ConverterTest extends TestCase { private static final Converter STR_TO_LONG = @@ -111,6 +112,7 @@ public StringWrapper(String value) { } } + @GwtIncompatible // J2CL generics problem public void testAndThen() { Converter first = new Converter() { @@ -140,6 +142,7 @@ public String toString() { assertEquals(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG)); } + @GwtIncompatible // J2CL generics problem public void testIdentityConverter() { Converter stringIdentityConverter = Converter.identity(); @@ -213,6 +216,7 @@ public void testSerialization_reverse() { SerializableTester.reserializeAndAssert(reverseConverter); } + @GwtIncompatible // J2CL generics problem public void testSerialization_andThen() { Converter converterA = Longs.stringConverter(); Converter reverseConverter = Longs.stringConverter().reverse(); diff --git a/guava-tests/test/com/google/common/base/ConverterTest.java b/guava-tests/test/com/google/common/base/ConverterTest.java index c787ef004c40..87e93282b3a7 100644 --- a/guava-tests/test/com/google/common/base/ConverterTest.java +++ b/guava-tests/test/com/google/common/base/ConverterTest.java @@ -19,6 +19,7 @@ import static com.google.common.base.Functions.toStringFunction; import com.google.common.annotations.GwtCompatible; +import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import com.google.common.primitives.Longs; @@ -29,7 +30,7 @@ import junit.framework.TestCase; /** Unit tests for {@link Converter}. */ -@GwtCompatible +@GwtCompatible(emulated = true) public class ConverterTest extends TestCase { private static final Converter STR_TO_LONG = @@ -111,6 +112,7 @@ public StringWrapper(String value) { } } + @GwtIncompatible // J2CL generics problem public void testAndThen() { Converter first = new Converter() { @@ -140,6 +142,7 @@ public String toString() { assertEquals(first.andThen(STR_TO_LONG), first.andThen(STR_TO_LONG)); } + @GwtIncompatible // J2CL generics problem public void testIdentityConverter() { Converter stringIdentityConverter = Converter.identity(); @@ -213,6 +216,7 @@ public void testSerialization_reverse() { SerializableTester.reserializeAndAssert(reverseConverter); } + @GwtIncompatible // J2CL generics problem public void testSerialization_andThen() { Converter converterA = Longs.stringConverter(); Converter reverseConverter = Longs.stringConverter().reverse();