TACHYON-120 Fail to cast String to other objects for JsonObject

Currently JsonObject.get just directly cast parameter Object to the generic T type. 
This could generate class cast exception such as the one from String to DependencyType.

Modify the code to use Jackson JSON formatter instead by passing the Class<T> type in the get method to avoid Java type erasure to get the actual parameterized type.
Sure
On Aug 29, 2014 3:13 PM, "Henry Saputra" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/master/JsonObject.java:
>
> > @@ -24,24 +27,33 @@ public static ObjectMapper createObjectMapper() {
> >          SerializationFeature.CLOSE_CLOSEABLE, false);
> >    }
> >
> > -  public Map<String, Object> parameters = Maps.newHashMap();
> > +  private static final ObjectMapper OBJECT_MAPPER = createObjectMapper();
> > +
> > +  public Map<String, JsonNode> parameters = Maps.newHashMap();
>
> Let me address the name is separate patch if it is ok with you.
> There are several more public vars that I missed for rename.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/403/files#r16923506>.
>