Map<String, String> map = new com.google.gson.Gson().fromJson("{\"test\":\"1.0\"}", Map.class);
1.7.0_45,執行正常
1.7.0_65,執行時異常:java.lang.Double cannot be cast to java.lang.String
Map<String, String> map = new com.google.gson.Gson().fromJson("{\"test\":\"1.0\"}", Map.class);
1.7.0_45,執行正常
1.7.0_65,執行時異常:java.lang.Double cannot be cast to java.lang.String