diff options
author | Marc Laukien <marc@zeroc.com> | 2002-12-29 03:22:29 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-12-29 03:22:29 +0000 |
commit | 36e1f3a5e24be676c62c10d1bb3567514e621d36 (patch) | |
tree | 62c0b392f4ec601e94745a0ebd4fb64a194d1f05 /cpp/src/slice2java/Gen.cpp | |
parent | more Java AMI (diff) | |
download | ice-36e1f3a5e24be676c62c10d1bb3567514e621d36.tar.bz2 ice-36e1f3a5e24be676c62c10d1bb3567514e621d36.tar.xz ice-36e1f3a5e24be676c62c10d1bb3567514e621d36.zip |
fix
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r-- | cpp/src/slice2java/Gen.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 040fc88fdd9..f4b063aba03 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -194,7 +194,8 @@ Slice::JavaVisitor::writeThrowsClause(const string& scope, const ExceptionList& // // Don't include local exceptions in the throws clause // - ExceptionList::size_type localCount = 0; + ExceptionList::size_type localCount = count_if(throws.begin(), throws.end(), + IceUtil::constMemFun(&Exception::isLocal)); Output& out = output(); if(throws.size() - localCount > 0) @@ -444,6 +445,7 @@ Slice::JavaVisitor::writeDispatch(Output& out, const ClassDefPtr& p) ExceptionList throws = op->throws(); throws.sort(); throws.unique(); + remove_if(throws.begin(), throws.end(), IceUtil::constMemFun(&Exception::isLocal)); TypeStringList::const_iterator q; int iter; @@ -2938,6 +2940,7 @@ Slice::Gen::DelegateMVisitor::visitClassDefStart(const ClassDefPtr& p) ExceptionList throws = op->throws(); throws.sort(); throws.unique(); + throws.erase(remove_if(throws.begin(), throws.end(), IceUtil::constMemFun(&Exception::isLocal)), throws.end()); string params = getParams(op, scope); @@ -3109,6 +3112,7 @@ Slice::Gen::DelegateDVisitor::visitClassDefStart(const ClassDefPtr& p) ExceptionList throws = op->throws(); throws.sort(); throws.unique(); + throws.erase(remove_if(throws.begin(), throws.end(), IceUtil::constMemFun(&Exception::isLocal)), throws.end()); string params = getParams(op, scope); string args = getArgs(op); |