aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
diff options
context:
space:
mode:
authorAdam Domurad <[email protected]>2013-08-23 16:35:37 -0400
committerAdam Domurad <[email protected]>2013-08-23 16:35:37 -0400
commit6fbf033b59cff6cedf9d31411835ab01938e048e (patch)
treeabf76980459caddf4846c329b9ef61624d9978c0 /plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
parent72ec74cba16e960095cb1fc9c1f37bfbfca64fe8 (diff)
Spawn Java side during C++ unit tests. Many new tests.
Diffstat (limited to 'plugin/icedteanp/IcedTeaJavaRequestProcessor.cc')
-rw-r--r--plugin/icedteanp/IcedTeaJavaRequestProcessor.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc b/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
index f7b7332..0d65bd4 100644
--- a/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
+++ b/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
@@ -1279,7 +1279,6 @@ JavaRequestProcessor::hasPackage(int plugin_instance_id,
{
JavaResultData* java_result;
JavaRequestProcessor* java_request = new JavaRequestProcessor();
- std::string message = std::string();
std::string plugin_instance_id_str = std::string();
IcedTeaPluginUtilities::itoa(plugin_instance_id, &plugin_instance_id_str);
@@ -1288,11 +1287,9 @@ JavaRequestProcessor::hasPackage(int plugin_instance_id,
this->instance = 0; // context is always 0 (needed for java-side backwards compat.)
this->reference = IcedTeaPluginUtilities::getReference();
+ std::string message;
IcedTeaPluginUtilities::constructMessagePrefix(0, reference, &message);
- message.append(" HasPackage ");
- message.append(plugin_instance_id_str);
- message.append(" ");
- message.append(java_result->return_string->c_str());
+ message += " HasPackage " + plugin_instance_id_str + " " + *java_result->return_string;
postAndWaitForResponse(message);