summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/JavaUtil.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/JavaUtil.cpp')
-rw-r--r--cpp/src/Slice/JavaUtil.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Slice/JavaUtil.cpp b/cpp/src/Slice/JavaUtil.cpp
index 17d446d7472..57f5a1c6b4c 100644
--- a/cpp/src/Slice/JavaUtil.cpp
+++ b/cpp/src/Slice/JavaUtil.cpp
@@ -572,7 +572,7 @@ Slice::JavaGenerator::writeMarshalUnmarshalCode(Output& out,
ClassDefPtr def = cl->definition();
if (def && !def->isAbstract())
{
- out << nl << v << " = (" << typeS << ')' << stream << ".readObject(" << typeS << ".__classIds[0], "
+ out << nl << v << " = (" << typeS << ')' << stream << ".readObject(" << typeS << ".ice_staticId(), "
<< typeS << "._factory);";
}
else
@@ -963,7 +963,7 @@ Slice::JavaGenerator::writeGenericMarshalUnmarshalCode(Output& out,
if (def && !def->isAbstract())
{
out << nl << v << " = (" << typeS << ')' << stream << ".readObject(" << name << ", " << typeS
- << ".__classIds[0], " << typeS << "._factory);";
+ << ".ice_staticId(), " << typeS << "._factory);";
}
else
{