summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-08-31 12:49:57 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-08-31 12:49:57 +0000
commitc84fa790589327a1f0dd5cbda0f44a94ddd1b9de (patch)
tree6117ddb3104187fb72169cb8d21798a213826580 /sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java
parent97bb8c91ce6b0ffc7b5deba14aae7e912399efdd (diff)
Fix bug where the type index isn't incremented
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@991178 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java
index aadb4d9853..320481ab20 100644
--- a/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java
+++ b/sca-java-2.x/trunk/modules/binding-jsonp-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonp/runtime/JSONPServlet.java
@@ -120,7 +120,7 @@ public class JSONPServlet extends GenericServlet {
if (!name.startsWith("_") && !"callback".equals(name)) {
// automatically quote string parameters so clients work in the usual javascript way
- if (typesIndex < types.size() && String.class.equals(types.get(typesIndex).getGenericType())) {
+ if (typesIndex < types.size() && String.class.equals(types.get(typesIndex++).getGenericType())) {
String x = servletRequest.getParameter(name);
// TODO: do this more properly
if (!x.startsWith("\"")) {