diff options
author | Jens Geyer <jensg@apache.org> | 2017-01-10 21:57:48 +0100 |
---|---|---|
committer | Jens Geyer <jensg@apache.org> | 2017-01-11 20:50:38 +0100 |
commit | 5f723cd53980f395a92c438790a127cbd5699d90 (patch) | |
tree | dced9178d553251f180c29b4c10197cd55267445 /lib/haxe | |
parent | 4f710aa4f47e051d41c863aa7aa9239dab5b9636 (diff) | |
download | thrift-5f723cd53980f395a92c438790a127cbd5699d90.tar.gz |
THRIFT-4024 Skip() should throw on unknown data types
Client: C#, NETCore, Haxe, Delphi, Go
Patch: Jens Geyer
This closes #1155
Diffstat (limited to 'lib/haxe')
-rw-r--r-- | lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx b/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx index 1ec59d2cf..001e40564 100644 --- a/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx +++ b/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx @@ -95,7 +95,7 @@ class TProtocolUtil { prot.readListEnd(); default: - trace("Unknown field type ",type," in skipMaxDepth()"); + throw new TProtocolException(TProtocolException.UNKNOWN, "Unknown field type ${type}"); } prot.DecrementRecursionDepth(); |