diff options
author | Michi Henning <michi@zeroc.com> | 2006-08-04 04:30:39 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2006-08-04 04:30:39 +0000 |
commit | 03611ef2af5765896a5db1ad61406d36fefc18bc (patch) | |
tree | d2e94178e86eeb9cb226e912e2badbe1bf5555d6 /cpp/src/slice2cpp/Gen.cpp | |
parent | Fixed bug #1284 (diff) | |
download | ice-03611ef2af5765896a5db1ad61406d36fefc18bc.tar.bz2 ice-03611ef2af5765896a5db1ad61406d36fefc18bc.tar.xz ice-03611ef2af5765896a5db1ad61406d36fefc18bc.zip |
Bug 1246.
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 64f06ac81a9..b8d889059b3 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -3236,8 +3236,9 @@ Slice::Gen::ObjectVisitor::visitClassDefEnd(const ClassDefPtr& p) C << nl << "*p = " << scope << name << "Ptr::dynamicCast(v);"; C << nl << "if(v && !*p)"; C << sb; - C << nl << "::Ice::NoObjectFactoryException e(__FILE__, __LINE__);"; - C << nl << "e.type = " << scope << fixKwd(name) << "::ice_staticId();"; + C << nl << "::Ice::UnexpectedObjectException e(__FILE__, __LINE__);"; + C << nl << "e.type = v->ice_id();"; + C << nl << "e.expectedType = " << scope << fixKwd(name) << "::ice_staticId();"; C << nl << "throw e;"; C << eb; C << eb; |