gson-comments/gson/src/test/java/com/google/gson
Andrey Mogilev 03a72e752e Fix StackOverflowError on resolving types with TypeVariable recursion (#1128)
* Fix StackOverflowError on resolving types with TypeVariable recursion

Sample failing code:
  private static class TestType<X> {
    TestType<? super X> superType;
  }
  ...
  new Gson().getAdapter(TestType.class);

* fix build errors
2017-07-31 10:50:29 -07:00
..
common updated minimum JDK version to 1.6. 2015-11-04 18:52:20 -08:00
functional Remove helper methods mentioned in the TODO list 2017-04-23 15:54:10 +03:00
internal Fix StackOverflowError on resolving types with TypeVariable recursion (#1128) 2017-07-31 10:50:29 -07:00
metrics Made FieldNamingStrategy2 is package protected class. 2010-08-19 00:10:42 +00:00
reflect Add static factories for array and parameterized type tokens. 2016-08-12 12:11:57 -04:00
regression incorporated code review feedback by eliminating the stringified type adapter. 2016-02-26 09:25:23 -08:00
stream value(double) can write NaN and infinite values when lenient, as value(Number) does (#1093) 2017-05-31 09:50:44 -07:00
CommentsTest.java Test case demonstrating that issue 212 is fixed. We got comment parsing support for free when we switched to JsonReader. 2010-08-27 07:33:33 +00:00
DefaultDateTypeAdapterTest.java Migrate DefaultDateTypeAdapter to streaming adapter (#1070) 2017-05-30 18:12:50 -07:00
DefaultInetAddressTypeAdapterTest.java Replace localhost lookup with static IP to fix test. 2015-07-20 14:03:52 -07:00
DefaultMapJsonSerializerTest.java Down to 22 failing tests. 2011-09-11 07:04:56 +00:00
ExposeAnnotationExclusionStrategyTest.java Rename GsonExclusionStrategy to Excluder. The new class is its own factory, which simplifies its caller in GsonBuilder. It no longer implements ExclusionStrategy, which allows the callers to pass in a boolean for serialize/deserialize. This allows us to use one excluder for both code paths. The delegate ExclusionStrategy instances might end up not being shared so it has two lists internally. 2011-11-22 07:37:13 +00:00
FieldAttributesTest.java Smash together ReflectiveTypeAdapterFactory and its subclass. The separation was useful earlier when we were contemplating keeping Gson and MiniGson separate. 2011-11-21 05:42:30 +00:00
GenericArrayTypeTest.java Renamed $Preconditions to $Gson$Preconditions and $Types to $Gson$Types. 2011-04-06 00:26:57 +00:00
GsonBuilderTest.java Permit users to define type adapters for primitive types and strings. 2012-06-30 02:37:49 +00:00
GsonTest.java Adds getters for config fields. 2016-04-26 15:30:01 -04:00
GsonTypeAdapterTest.java updated minimum JDK version to 1.6. 2015-11-04 18:52:20 -08:00
InnerClassExclusionStrategyTest.java Rename GsonExclusionStrategy to Excluder. The new class is its own factory, which simplifies its caller in GsonBuilder. It no longer implements ExclusionStrategy, which allows the callers to pass in a boolean for serialize/deserialize. This allows us to use one excluder for both code paths. The delegate ExclusionStrategy instances might end up not being shared so it has two lists internally. 2011-11-22 07:37:13 +00:00
JavaSerializationTest.java Regretfully enable serialization for StringMap and LazilyParsedNumber. 2012-08-15 14:58:26 +00:00
JsonArrayTest.java renamed JsonArray.has() to JsonArray.contains() 2014-07-04 02:03:34 +00:00
JsonNullTest.java removed eclipse warnings, unused fields. Made inner classes static where possible. 2013-04-12 20:09:08 +00:00
JsonObjectTest.java Add keySet method and test (#942) 2016-12-13 22:15:49 -08:00
JsonParserTest.java Adding Red-Black Tree implementation and tying it into the Gson bindings. 2012-10-11 03:15:49 +00:00
JsonPrimitiveTest.java JsonObject.deepCopy() for Gson. 2012-08-21 01:19:43 +00:00
JsonStreamParserTest.java Remove unused import. 2009-10-02 20:22:43 +00:00
LongSerializationPolicyTest.java Integration test for long serialization policy. 2011-10-20 04:57:58 +00:00
MixedStreamTest.java Track change in thrown exception. 2011-10-24 05:03:06 +00:00
MockExclusionStrategy.java updated minimum JDK version to 1.6. 2015-11-04 18:52:20 -08:00
ObjectTypeAdapterTest.java Support null values in StringMap 2012-03-11 15:19:01 +00:00
OverrideCoreTypeAdaptersTest.java Address code review comments on r1154 2012-07-02 20:32:38 +00:00
ParameterizedTypeFixtures.java updated minimum JDK version to 1.6. 2015-11-04 18:52:20 -08:00
ParameterizedTypeTest.java Fix some typos in gson comments. 2016-02-15 14:11:23 -08:00
PrimitiveTypeAdapter.java Down to 22 failing tests. 2011-09-11 07:04:56 +00:00
VersionExclusionStrategyTest.java removed some eclipse warnings 2014-03-09 07:33:08 +00:00