summaryrefslogtreecommitdiff
path: root/cpp/src/slice2java/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-05-12 13:45:22 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-05-12 13:45:22 -0230
commitc1b188709a4a257182071697c685d18af0de89d0 (patch)
tree9cc2952a2e67da8eedd00a97871aed4cfbcced3a /cpp/src/slice2java/Gen.cpp
parentBug 3921 - mention build options in README.DEMOS (diff)
downloadice-c1b188709a4a257182071697c685d18af0de89d0.tar.bz2
ice-c1b188709a4a257182071697c685d18af0de89d0.tar.xz
ice-c1b188709a4a257182071697c685d18af0de89d0.zip
Bug 3418 - deprecate ice_hash/ice_getHash where not needed
Diffstat (limited to 'cpp/src/slice2java/Gen.cpp')
-rw-r--r--cpp/src/slice2java/Gen.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp
index 277e576c4ea..8135f0465ab 100644
--- a/cpp/src/slice2java/Gen.cpp
+++ b/cpp/src/slice2java/Gen.cpp
@@ -1547,7 +1547,10 @@ Slice::Gen::TieVisitor::visitClassDefStart(const ClassDefPtr& p)
if(p->isLocal())
{
- out << sp << nl << "public int" << nl << "ice_hash()";
+ out << sp << nl << "/**";
+ out << nl << " * @deprecated This method is deprecated, use hashCode instead.";
+ out << nl << " **/";
+ out << nl << "public int" << nl << "ice_hash()";
out << sb;
out << nl << "return hashCode();";
out << eb;