commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ate Douma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SCXML-234) Unit test (ScriptTest) fails
Date Wed, 08 Jul 2015 23:22:06 GMT

    [ https://issues.apache.org/jira/browse/SCXML-234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14619575#comment-14619575
] 

Ate Douma commented on SCXML-234:
---------------------------------

I was aware this test fails on Java 8.
However right now SCXML (javascript support) is still assuming Java 6 (or 7) only, and thereby
implemented assuming the outdated/limited Mozilla Rhino Javascript engine.   
As result, the current javascript support and implementation is quite incomplete, broken even,
and non-compliant compared to the Jexl and Groovy scripting support.

I actually we better switch to Java 8 as minimum and completely remove/replace the current
implementation and re-implement based on the new and much better Java 8 nashorn Javascript
engine instead.
I don't have the cycles to work on this right now, but I think this is the only path forward.
Fixing or trying to workaround the incompatibilities and limitations of the Java 6 Javascript
engine is a dead-end.


> Unit test (ScriptTest) fails
> ----------------------------
>
>                 Key: SCXML-234
>                 URL: https://issues.apache.org/jira/browse/SCXML-234
>             Project: Commons SCXML
>          Issue Type: Bug
>            Reporter: Woonsan Ko
>
> One unit test fails:
> {code}
> Running org.apache.commons.scxml2.model.ScriptTest
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec <<<
FAILURE! - in org.apache.commons.scxml2.model.ScriptTest
> testJavaScriptExecution(org.apache.commons.scxml2.model.ScriptTest)  Time elapsed: 0.218
sec  <<< FAILURE!
> org.junit.ComparisonFailure: expected:<[end]> but was:<[script]>
> 	at org.junit.Assert.assertEquals(Assert.java:115)
> 	at org.junit.Assert.assertEquals(Assert.java:144)
> 	at org.apache.commons.scxml2.model.ScriptTest.testJavaScriptExecution(ScriptTest.java:49)
> {code}
> Tested on JDK 1.8.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message