From f9cda6ccd07f961ddb97e61a764d81c62add6ef5 Mon Sep 17 00:00:00 2001 From: Michi Henning Date: Thu, 18 Oct 2007 19:37:48 +1000 Subject: UnexpectedObjectException change merged from C# and Java. --- cpp/src/slice2cpp/Gen.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index b68b987de22..c1dbbee6d2b 100755 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -3808,10 +3808,7 @@ 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::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 << nl << "IceInternal::Ex::throwUOE(" << scope << name << "::ice_staticId(), v->ice_id());"; C << eb; C << eb; -- cgit v1.2.3