1.1 --- a/boot/src/test/java/org/netbeans/html/boot/impl/JsClassLoaderBase.java Mon Feb 08 20:50:46 2016 +0100
1.2 +++ b/boot/src/test/java/org/netbeans/html/boot/impl/JsClassLoaderBase.java Mon Feb 15 05:23:17 2016 +0100
1.3 @@ -126,6 +126,18 @@
1.4 throw ex.getTargetException();
1.5 }
1.6 }
1.7 +
1.8 + @Test public void primitiveArrayReturn() throws Throwable {
1.9 + Method st = methodClass.getMethod("both", double.class, double.class);
1.10 + Throwable ex;
1.11 + try {
1.12 + Object arr = st.invoke(null, 2, 5);
1.13 + ex = null;
1.14 + } catch (InvocationTargetException invoke) {
1.15 + ex = invoke.getTargetException();
1.16 + }
1.17 + assertTrue(ex instanceof ClassCastException, "Primitive arrays aren't returned from JavaScript: " + ex);
1.18 + }
1.19
1.20 @Test public void truth() throws Throwable {
1.21 Method st = methodClass.getMethod("truth");