8057940: JCK test api/java_awt/Image/renderable/ParameterBlock fails with StackOverflowError
Reviewed-by: serb, prr
--- 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);
}
/**