On Thu, 2015-10-15 at 12:24 +0000, Nicolas Peltier wrote:
> :-D (<- me getting nuts)
>
> wild guess is you run java 1.8_0.31, and your computer is at risk ;-
> ), please update to 1.8_0.60
How about the following 'fix'?
diff --git a/src/test/java/org/apache/sling/pipes/PipeBindingsTest.java
b/src/test/java/org/apache/sling/pipes/PipeBindingsTest.java
index 049af9b..ffb9291 100644
--- a/src/test/java/org/apache/sling/pipes/PipeBindingsTest.java
+++ b/src/test/java/org/apache/sling/pipes/PipeBindingsTest.java
@@ -97,7 +97,9 @@ public class PipeBindingsTest extends
AbstractPipeTest {
context.load().binaryFile("/testSum.js",
"/content/test/testSum.js");
Resource resource =
context.resourceResolver().getResource(PATH_PIPE + "/" +
NN_MOREBINDINGS);
PipeBindings bindings = new PipeBindings(resource);
- Object expression =
bindings.instantiateObject("${testSumFunction(1,2)}");
- assertEquals("computed expression have testSum script's
functionavailable", 3L, expression);
+ Number expression = (Number)
bindings.instantiateObject("${testSumFunction(1,2)}");
+
+
+ assertEquals("computed expression have testSum script's
functionavailable", 3, expression.intValue());
}
}
Robert
> > On 15 Oct 2015, at 13:58, Bertrand Delacretaz
> > <[email protected]> wrote:
> >
> > Hi,
> >
> > On Thu, Oct 15, 2015 at 1:36 PM, Nicolas Peltier <[email protected]
> > m> wrote:
> > > ... re-updated tarball & shasum with Robert’s issue fix....
> >
> > I'm still getting the following error running mvn clean install
> > with
> > java 1.8 on the archive with sha1
> > 68eee1fa87784ea841c80e88b344ec92deb0f848 :
> >
> > Failed tests:
> > PipeBindingsTest.testAdditionalScript:101 computed expression have
> > testSum script's functionavailable expected: java.lang.Long<3> but
> > was: java.lang.Integer<3>
> >
> > -Bertrand
>