/hg/release/icedtea-web-1.0: Use correct response parameter when...

dbhole at icedtea.classpath.org dbhole at icedtea.classpath.org
Thu Dec 22 13:17:03 PST 2011


changeset 990dc0dd5c48 in /hg/release/icedtea-web-1.0
details: http://icedtea.classpath.org/hg/release/icedtea-web-1.0?cmd=changeset;node=990dc0dd5c48
author: Deepak Bhole <dbhole at redhat.com>
date: Thu Dec 22 16:15:54 2011 -0500

	Use correct response parameter when returning array member vs member
	itself

	Patch from Thomas Meyer <thomas at m3y3r.de>


diffstat:

 ChangeLog                                         |  5 +++++
 plugin/icedteanp/IcedTeaPluginRequestProcessor.cc |  6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 71327f4cb706 -r 990dc0dd5c48 ChangeLog
--- a/ChangeLog	Wed Dec 21 17:29:45 2011 -0500
+++ b/ChangeLog	Thu Dec 22 16:15:54 2011 -0500
@@ -1,3 +1,8 @@
+2011-12-22  Thomas Meyer <thomas at m3y3r.de>
+
+	* plugin/icedteanp/IcedTeaPluginRequestProcessor.cc(sendMember): Use
+	correct response parameter when returning array member vs member itself.
+
 2011-12-21  Thomas Meyer <thomas at m3y3r.de>
 
 	RH586194: Unable to connect to connect with Juniper VPN client
diff -r 71327f4cb706 -r 990dc0dd5c48 plugin/icedteanp/IcedTeaPluginRequestProcessor.cc
--- a/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Wed Dec 21 17:29:45 2011 -0500
+++ b/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc	Thu Dec 22 16:15:54 2011 -0500
@@ -556,11 +556,11 @@
     createJavaObjectFromVariant(instance, *member_ptr, &result_id);
 
     IcedTeaPluginUtilities::constructMessagePrefix(0, reference, &response);
-    if (*(message_parts->at(2)) == "GetSlot")
+    if (*(message_parts->at(4)) == "GetSlot")
     {
+        response.append(" JavaScriptGetSlot ");
+    } else {
         response.append(" JavaScriptGetMember ");
-    } else {
-        response.append(" JavaScriptGetSlot ");
     }
     response.append(result_id.c_str());
     plugin_to_java_bus->post(response.c_str());



More information about the distro-pkg-dev mailing list