diff options
author | Michi Henning <michi@zeroc.com> | 2006-01-12 01:05:22 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-01-12 01:05:22 +0000 |
commit | b10cc6c2641eea39a5232c31b00fdba9a9db7843 (patch) | |
tree | 5b0111e5e6bd0f27904598a659ea08b2f1c8dfba /cpp | |
parent | fixing bug 732: equals() can raise ClassCastException (diff) | |
download | ice-b10cc6c2641eea39a5232c31b00fdba9a9db7843.tar.bz2 ice-b10cc6c2641eea39a5232c31b00fdba9a9db7843.tar.xz ice-b10cc6c2641eea39a5232c31b00fdba9a9db7843.zip |
Bug 732.
Diffstat (limited to 'cpp')
-rwxr-xr-x | cpp/src/slice2cs/Gen.cpp | 2 | ||||
-rwxr-xr-x | cpp/src/slice2vb/Gen.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index c11d5bc1941..6d0b6f75272 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -2053,7 +2053,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) _out << eb; _out << nl << "if(!(other__ is " << name << "))"; _out << sb; - _out << nl << "throw new _System.ArgumentException(\"expected argument of type `" << name << "'\", \"other__\");"; + _out << nl << "return false;"; _out << eb; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) { diff --git a/cpp/src/slice2vb/Gen.cpp b/cpp/src/slice2vb/Gen.cpp index cba61b713cd..f7e6c7303d1 100755 --- a/cpp/src/slice2vb/Gen.cpp +++ b/cpp/src/slice2vb/Gen.cpp @@ -2189,8 +2189,7 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) _out << nl << "End If"; _out << nl << "If Not TypeOf other__ Is " << name << " Then"; _out.inc(); - _out << nl << "Throw New _System.ArgumentException(\"expected argument of type `" << p->name() - << "'\", \"other__\")"; + _out << nl << "Return False"; _out.dec(); _out << nl << "End If"; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) |