From 46bfaab25c7c52112babf9321fcb8954f34f4010 Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Thu, 1 Feb 2018 17:16:04 +0100 Subject: Added ice_fixed to generated Java proxy class, added test to check proxy return type from ice_fixed --- cpp/src/slice2java/Gen.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'cpp/src') diff --git a/cpp/src/slice2java/Gen.cpp b/cpp/src/slice2java/Gen.cpp index 01d3e752ccb..d6039c28691 100644 --- a/cpp/src/slice2java/Gen.cpp +++ b/cpp/src/slice2java/Gen.cpp @@ -4851,6 +4851,18 @@ Slice::Gen::ProxyVisitor::visitClassDefEnd(const ClassDefPtr& p) out << nl << "return (" << p->name() << "Prx)_ice_connectionId(connectionId);"; out << eb; + out << sp; + writeDocComment(out, + "Returns a proxy that is identical to this proxy, except it's a fixed proxy bound\n" + "the given connection." + "@param connection The fixed proxy connection.\n" + "@return A fixed proxy bound to the given connection."); + out << nl << "@Override"; + out << nl << "default " << p->name() << "Prx ice_fixed(com.zeroc.Ice.Connection connection)"; + out << sb; + out << nl << "return (" << p->name() << "Prx)_ice_fixed(connection);"; + out << eb; + out << sp; out << nl << "static String ice_staticId()"; out << sb; -- cgit v1.2.3