summaryrefslogtreecommitdiff
path: root/cpp/src/slice2cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2017-01-19 16:21:07 -0500
committerBernard Normier <bernard@zeroc.com>2017-01-19 16:21:07 -0500
commita7a1e11a3d1f32e71ea24596fec6645ecd669419 (patch)
treee8b365a2fb897023965b2a26f7385c56bfb7d242 /cpp/src/slice2cpp
parentFixed cross-testing objective-c/python (diff)
downloadice-a7a1e11a3d1f32e71ea24596fec6645ecd669419.tar.bz2
ice-a7a1e11a3d1f32e71ea24596fec6645ecd669419.tar.xz
ice-a7a1e11a3d1f32e71ea24596fec6645ecd669419.zip
java:UserException metadata for both local and remote operations
Diffstat (limited to 'cpp/src/slice2cpp')
-rw-r--r--cpp/src/slice2cpp/Gen.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp
index 073ce41241d..49db4f74884 100644
--- a/cpp/src/slice2cpp/Gen.cpp
+++ b/cpp/src/slice2cpp/Gen.cpp
@@ -4609,18 +4609,6 @@ Slice::Gen::MetaDataVisitor::visitOperation(const OperationPtr& p)
ami = true;
}
- if(p->hasMetaData("UserException"))
- {
- if(!cl->isLocal())
- {
- ostringstream ostr;
- ostr << "ignoring invalid metadata `UserException': directive applies only to local operations "
- << "but enclosing " << (cl->isInterface() ? "interface" : "class") << "`" << cl->name()
- << "' is not local";
- emitWarning(p->file(), p->line(), ostr.str());
- }
- }
-
StringList metaData = p->getMetaData();
metaData.remove("cpp:const");