summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2007-03-29 03:13:51 +0000
committerMark Spruiell <mes@zeroc.com>2007-03-29 03:13:51 +0000
commit2100b9246ad65cde744091ff0b2b6e702ef91b71 (patch)
tree3fc61369b89462400ef6d7e91da54f90d1ba5bff /cpp/src/slice2java/Gen.cpp
parentupdating test for bug 2070 (diff)
downloadice-2100b9246ad65cde744091ff0b2b6e702ef91b71.tar.bz2
ice-2100b9246ad65cde744091ff0b2b6e702ef91b71.tar.xz
ice-2100b9246ad65cde744091ff0b2b6e702ef91b71.zip
bug 2070
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index aa163075dfb..9a71285e426 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -3740,7 +3740,6 @@ Slice::Gen::HelperVisitor::visitDictionary(const DictionaryPtr& p)
string helper = getAbsolute(p, "", "", "Helper");
string package = getPackage(p);
StringList metaData = p->getMetaData();
- string concreteType = typeToString(p, TypeModeIn, package, StringList(), false);
string abstractType = typeToString(p, TypeModeIn, package, StringList(), true);
if(open(helper))
@@ -3760,7 +3759,7 @@ Slice::Gen::HelperVisitor::visitDictionary(const DictionaryPtr& p)
out << sp << nl << "public static " << abstractType
<< nl << "read(IceInternal.BasicStream __is)";
out << sb;
- out << nl << abstractType << " __v = new " << concreteType << "();";
+ out << nl << abstractType << " __v;";
iter = 0;
writeDictionaryMarshalUnmarshalCode(out, package, p, "__v", false, iter, false);
out << nl << "return __v;";
@@ -3778,7 +3777,7 @@ Slice::Gen::HelperVisitor::visitDictionary(const DictionaryPtr& p)
out << sp << nl << "public static " << abstractType
<< nl << "read(Ice.InputStream __inS)";
out << sb;
- out << nl << abstractType << " __v = new " << concreteType << "();";
+ out << nl << abstractType << " __v;";
iter = 0;
writeStreamDictionaryMarshalUnmarshalCode(out, package, p, "__v", false, iter, false);
out << nl << "return __v;";