2011-09-09 06:20:25 +02:00
|
|
|
What's new in GSON 2.0
|
|
|
|
|
|
|
|
GSON 1.x used to automatically unwrap single-element arrays as necessary.
|
|
|
|
GSON 2.x doesn't.
|
|
|
|
com.google.gson.functional.ArrayTest.testSingleStringArrayDeserialization
|
2011-09-09 07:04:24 +02:00
|
|
|
com.google.gson.functional.PrimitiveTest#testPrimitiveIntegerAutoboxedInASingleElementArrayDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest#testPrimitiveLongAutoboxedInASingleElementArrayDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest#testPrimitiveBooleanAutoboxedDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest.testPrimitiveBooleanAutoboxedInASingleElementArrayDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest.testPrimitiveDoubleAutoboxedInASingleElementArrayDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest.testBigDecimalInASingleElementArrayDeserialization
|
|
|
|
com.google.gson.functional.PrimitiveTest.testBigIntegerInASingleElementArrayDeserialization
|
2011-09-09 07:41:35 +02:00
|
|
|
com.google.gson.functional.StringTest.testStringValueAsSingleElementArrayDeserialization
|
2011-09-09 06:20:25 +02:00
|
|
|
|
|
|
|
GSON 1.x permitted primitive types to be overridden
|
|
|
|
GSON 2.x doesn't.
|
2011-09-09 07:04:24 +02:00
|
|
|
com.google.gson.functional.ArrayTest.testArrayOfPrimitivesWithCustomTypeAdapter
|
|
|
|
com.google.gson.functional.PrimitiveTest.testOverridingDefaultPrimitiveSerialization
|
|
|
|
|
|
|
|
|
|
|
|
GSON 1.x rejects integers that have any fraction, even if it is ".0"
|
|
|
|
GSON 2.x permits integers to have ".0" fractions like "1.0"
|
2011-09-09 07:11:59 +02:00
|
|
|
com.google.gson.functional.PrimitiveTest.testDeserializingDecimalPointValuesAsIntegerFails
|
|
|
|
|
|
|
|
GSON 1.x truncates oversized large integers and longs
|
|
|
|
GSON 2.x fails on oversized large integers and longs
|
|
|
|
com.google.gson.functional.PrimitiveTest.testDeserializingBigIntegerAsInteger
|
2011-09-09 07:23:01 +02:00
|
|
|
com.google.gson.functional.PrimitiveTest.testDeserializingBigIntegerAsLong
|
|
|
|
|
|
|
|
|
|
|
|
GSON 1.x uses arbitrary precision for primitive type conversion (so -122.08e-2132 != 0)
|
|
|
|
GSON 2.x uses double precision (so -122.08e-2132 == 0)
|
2011-09-09 08:26:21 +02:00
|
|
|
com.google.gson.functional.PrimitiveTest.testDeserializingBigDecimalAsLongFails
|
|
|
|
|
|
|
|
|
|
|
|
GSON 1.x supports type adapters for primitive types
|
|
|
|
GSON 2.x doesn't
|
|
|
|
com.google.gson.functional.CustomTypeAdaptersTest.testCustomSerializerForLong
|
|
|
|
com.google.gson.functional.CustomTypeAdaptersTest.testCustomDeserializerForLong
|