8057940: JCK test api/java_awt/Image/renderable/ParameterBlock fails with StackOverflowError
authoralexsch
Wed, 10 Sep 2014 15:09:31 +0400
changeset 26740 3c3ee0f28317
parent 26739 3d7d13b86ff0
child 26741 bc80bcd0765a
8057940: JCK test api/java_awt/Image/renderable/ParameterBlock fails with StackOverflowError Reviewed-by: serb, prr
jdk/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java
--- a/jdk/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java	Wed Sep 10 11:01:59 2014 +0200
+++ b/jdk/src/java.desktop/share/classes/java/awt/image/renderable/ParameterBlock.java	Wed Sep 10 15:09:31 2014 +0400
@@ -370,7 +370,7 @@
      *         the specified parameter.
      */
     public ParameterBlock add(int i) {
-        return add(i);
+        return add(Integer.valueOf(i));
     }
 
     /**
@@ -489,7 +489,7 @@
      *        the specified parameter.
      */
     public ParameterBlock set(int i, int index) {
-        return set(i, index);
+        return set(Integer.valueOf(i), index);
     }
 
     /**