summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Parser.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-12-13 17:34:25 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-12-13 17:34:25 +0000
commitc1b56c4c27ebdac68c5998239ca91afc106dd5e9 (patch)
treebb0d0390b70bad5d215597b56a094d93fbd1543d /cpp/src/Slice/Parser.cpp
parentFixed ifdef from last commit (diff)
downloadice-c1b56c4c27ebdac68c5998239ca91afc106dd5e9.tar.bz2
ice-c1b56c4c27ebdac68c5998239ca91afc106dd5e9.tar.xz
ice-c1b56c4c27ebdac68c5998239ca91afc106dd5e9.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=511
Diffstat (limited to 'cpp/src/Slice/Parser.cpp')
-rw-r--r--cpp/src/Slice/Parser.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/cpp/src/Slice/Parser.cpp b/cpp/src/Slice/Parser.cpp
index a19bea957d3..b9ac3797d14 100644
--- a/cpp/src/Slice/Parser.cpp
+++ b/cpp/src/Slice/Parser.cpp
@@ -4347,21 +4347,6 @@ Slice::Operation::setExceptionList(const ExceptionList& el)
_throws = el;
//
- // Local interfaces and classes cannot have an exception specification.
- //
- if(el.size() != 0) {
- ClassDefPtr parent = ClassDefPtr::dynamicCast(container());
- assert(parent);
- if(parent->isLocal())
- {
- string msg = "operation `" + name() + "' cannot have a throws clause because it is an operation on a ";
- msg += parent->kindOf();
- _unit->error(msg);
- return;
- }
- }
-
- //
// Check that no exception occurs more than once in the throws clause.
//
ExceptionList uniqueExceptions = el;