Hi.
Do you can not use an anonymous classes and instance initializer when initializing variables in App42 custom code? The following code works fine on the local host, but, Application Exception occurs when you run on App42.
public static Map [] get () {
Map [] data = new HashMap [] {
new HashMap<String,String> () {{
put ("foo", "fooVal1");
put ("bar", "barVal1");
}},
new HashMap<String,String> () {{
put ("foo", "fooVal2");
put ("bar", "barVal2");
}}
};
return data;
}