Skip to content
Permalink
Branch: master
Commits on Mar 31, 2019
Commits on Mar 24, 2019
  1. bugfix: handle TypeNotPresentException when processing generic types

    amogilev committed Mar 24, 2019
    Java supports missing classes in type parameters ar run time, due to
    the type erasure. However, an attempt to ask for getGenericType() on
    such a field would result in TypeNotPresentException.
    
    For example:
    class MyBean {
      // fine if compiled with MissingClass which is later removed
      // caused TypeNotPresentException on serialization attempts
      List<MissingClass> list = new ArrayList<>();
    }
    
    The problem is fixed by using a backup path (get non-generic type) in
    case of exceptions.
Commits on Mar 19, 2019
Commits on Mar 17, 2019
Commits on Mar 9, 2019
Commits on Feb 18, 2019
Commits on Feb 4, 2019
  1. fix tests for Java 11 build

    amogilev committed Feb 4, 2019
  2. merge with Gson 2.8.5

    amogilev committed Feb 4, 2019
Commits on Jan 26, 2019
  1. support for JsonSerializer/JsonDeserializer

    amogilev committed Jan 15, 2019
    Now it is possible to implement JsonSerializer/JsonDeserializer to use with YaGson's handling of type wrappers and references
Commits on Jan 17, 2019
  1. bugfix: adapter for map keys was not correctly checked for 'isSimple'

    amogilev committed Jan 17, 2019
    As a result, duplicate map keys were incorrectly converted to references
    on serialization, which caused exception on deserialization
Commits on Jan 13, 2019
  1. update changelog for 0.4.1

    amogilev committed Jan 13, 2019
Commits on Oct 6, 2018
  1. fixes for Android 4

    amogilev committed Sep 15, 2018
Commits on Jan 3, 2018
  1. Java 9 support: use Unsafe-based reflection in Java 9+ (#1218)

    amogilev authored and inder123 committed Jan 3, 2018
    * Java 9 support: use Unsafe-based reflection in Java 9+
    
    fixes "illegal reflective access" warnings and exceptions
    
    * fix Codacy warnings
    
    * improve code quality based on PR review
    
    * improve code quality based on PR review
    
    * fix Codacy warning
    
    * improve code quality based on PR review
    
    * inlined createReflectionAccessor method
Commits on Dec 29, 2017
  1. fix Java9 DateFormat changes (#1211)

    amogilev authored and inder123 committed Dec 29, 2017
    * fix Java9 DateFormat changes
    
    * fix Codacy warnings
Commits on Dec 9, 2017
Commits on Dec 7, 2017
  1. Merge with Gson 2.8.2

    amogilev committed Dec 7, 2017
Commits on Dec 4, 2017
Commits on Nov 21, 2017
  1. Java 9 support: use Unsafe-based reflection in Java 9+

    amogilev committed Nov 21, 2017
    fixes "illegal reflective access" warnings and exceptions
Commits on Sep 22, 2017
  1. fix issue #1107: resolve element type in wildcard collection types (#…

    amogilev authored and inder123 committed Sep 22, 2017
    …1146)
    
    * fix issue #1107: resolve element type in wildcard collection types
    
    * fix Codacy warnings
    
    * fix Codacy warnings
Commits on Aug 27, 2017
  1. workaround for enums corrupted by ProGuard

    amogilev committed Aug 27, 2017
    Default ProGuard configuration removes valueOf() and values() from the
    processed enum classes. As a result, type.getEnumConstants() == null for
    such classes, and NullPointerException was thrown from the constructor
    of EnumTypeAdapter.
    
    As an example of the corrupted enum classes, see Predicates.ObjectPredicates
    from jersey-guava (up to 2.25.1 so far).
    Also see https://www.guardsquare.com/en/proguard/manual/examples#enumerations
Older
You can’t perform that action at this time.