com.alibaba.fastjson.JSONException: can not cast to : Test.Test$B<java.lang.String>

GitHub | fixboom | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    带泛型的对象不能被反序列化

    GitHub | 9 months ago | fixboom
    com.alibaba.fastjson.JSONException: can not cast to : Test.Test$B<java.lang.String>
  2. 0

    GitHub comment 7#6565900

    GitHub | 5 years ago | cnhans
    com.alibaba.fastjson.JSONException: can not cast to : java.util.Calendar

    Root Cause Analysis

    1. com.alibaba.fastjson.JSONException

      can not cast to : Test.Test$B<java.lang.String>

      at com.alibaba.fastjson.util.TypeUtils.castToJavaBean()
    2. fastjson
      TypeUtils.cast
      1. com.alibaba.fastjson.util.TypeUtils.castToJavaBean(TypeUtils.java:921)
      2. com.alibaba.fastjson.util.TypeUtils.cast(TypeUtils.java:615)
      2 frames