summaryrefslogtreecommitdiff
path: root/test/DebugProtoTest.thrift
diff options
context:
space:
mode:
authorBryan Duxbury <bryanduxbury@apache.org>2009-12-31 18:18:00 +0000
committerBryan Duxbury <bryanduxbury@apache.org>2009-12-31 18:18:00 +0000
commit986d50fc718f06b234cf59effd9d374678801557 (patch)
treed21fd268a8a36c5bb9f5714f4f6182403bc85a8c /test/DebugProtoTest.thrift
parentd250314e66b5a90b4aa5060ee1e326b5818cbb46 (diff)
downloadthrift-986d50fc718f06b234cf59effd9d374678801557.tar.gz
THRIFT-668. java: Using a map in an exception type will generate a class that does not implement Comperable-> that will generate a stub that does not compile
The compiler was incorrectly assuming that exceptions were comparable. Now, exceptions are treated just like structs. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@894919 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r--test/DebugProtoTest.thrift12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift
index 6a9c7855d..6731e5e43 100644
--- a/test/DebugProtoTest.thrift
+++ b/test/DebugProtoTest.thrift
@@ -216,6 +216,16 @@ const CompactProtoTestStruct COMPACT_TEST = {
const i32 MYCONST = 2
+
+exception ExceptionWithAMap {
+ 1: string blah;
+ 2: map<string, string> map_field;
+}
+
+service ServiceForExceptionWithAMap {
+ void methodThatThrowsAnException() throws (1: ExceptionWithAMap xwamap);
+}
+
service Srv {
i32 Janky(1: i32 arg);
@@ -308,4 +318,4 @@ typedef map<i32,i32> SomeMap
struct StructWithASomemap {
1: required SomeMap somemap_field;
-} \ No newline at end of file
+}