You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There´s a lack of flexibility on GsonDeserialization.
"deserialize" method with Json Array as input in "inputStream", will throw "IllegalArgumentException" if there are more than 1 parameter in the "method".
So, if i try to use REST with an additional parameter (let´s say an additional "AuthentitcationToken" parameter with @HeaderParam("token")), it will throw "IllegalArgumentException".
Code (i´ve commented the "if" sentence):
@Deserializes({ "application/json", "json" }) @SuppressWarnings("rawtypes")
public class GsonDeserialization implements Deserializer {
...
...
There´s a lack of flexibility on GsonDeserialization.
"deserialize" method with Json Array as input in "inputStream", will throw "IllegalArgumentException" if there are more than 1 parameter in the "method".
So, if i try to use REST with an additional parameter (let´s say an additional "AuthentitcationToken" parameter with @HeaderParam("token")), it will throw "IllegalArgumentException".
Code (i´ve commented the "if" sentence):
@Deserializes({ "application/json", "json" })
@SuppressWarnings("rawtypes")
public class GsonDeserialization implements Deserializer {
...
...
public Object[] deserialize(InputStream inputStream, ResourceMethod method) {
Class<?>[] types = getTypes(method);
...
}
The text was updated successfully, but these errors were encountered: