summaryrefslogtreecommitdiff
path: root/lib/javame
diff options
context:
space:
mode:
authorJames E. King III <jking@apache.org>2019-02-14 16:46:38 -0500
committerGitHub <noreply@github.com>2019-02-14 16:46:38 -0500
commitdbc1f8def5018ce5d85d38b9875c6c6b6b424478 (patch)
tree0011127f2edd9221f973eb157438bbd11c0b74d2 /lib/javame
parent3ca88065dfdb24c5bad6fbd1e3a7e01812628d3b (diff)
downloadthrift-dbc1f8def5018ce5d85d38b9875c6c6b6b424478.tar.gz
THRIFT-4024, THRIFT-4783: throw when skipping invalid type (#1742)
* THRIFT-4024: make c_glib throw on unsupported type when skipping * THRIFT-4783: throw on invalid skip (py) * THRIFT-4024: make cpp throw on unsupported type when skipping * THRIFT-4024: uniform skip behavior on unsupported type
Diffstat (limited to 'lib/javame')
-rw-r--r--lib/javame/src/org/apache/thrift/protocol/TProtocolUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/javame/src/org/apache/thrift/protocol/TProtocolUtil.java b/lib/javame/src/org/apache/thrift/protocol/TProtocolUtil.java
index 9bf10f67e..c327448ef 100644
--- a/lib/javame/src/org/apache/thrift/protocol/TProtocolUtil.java
+++ b/lib/javame/src/org/apache/thrift/protocol/TProtocolUtil.java
@@ -152,7 +152,8 @@ public class TProtocolUtil {
break;
}
default:
- break;
+ throw new TProtocolException(TProtocolException.INVALID_DATA,
+ "Unrecognized type " + type);
}
}
}