You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2014/02/23 13:05:20 UTC

[jira] [Updated] (SOLR-4634) Fix test bugs in Javascript tests to work with Java 8's Mozilla-Rhino-replacement "Nashorn"

     [ https://issues.apache.org/jira/browse/SOLR-4634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uwe Schindler updated SOLR-4634:
--------------------------------

    Labels: Java8  (was: )

> Fix test bugs in Javascript tests to work with Java 8's Mozilla-Rhino-replacement "Nashorn"
> -------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4634
>                 URL: https://issues.apache.org/jira/browse/SOLR-4634
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>              Labels: Java8
>         Attachments: SOLR-4634.patch
>
>
> the new Java 8 builds have replaced "Mozilla Rhino" JavaScript engine with "Nashorn" (http://openjdk.java.net/projects/nashorn/). The tests assume that a specific java type is returned, which is not guaranteed and Rhino-specific. Instead it should only cast to java.lang.Number and not to a specific type. The reason for the difference: Javascript is typeless, it only knows numbers, but not double/integer/...
> The other bug is not explainable to me, I think its some other problem. Il will fix the first one.
> The following tests fail, mostly with "java.lang.Integer cannot be casted to java.lang.Double":
> - org.apache.solr.update.processor.ScriptEngineTest.testEvalText
> - org.apache.solr.update.processor.ScriptEngineTest.testPut
> - org.apache.solr.update.processor.ScriptEngineTest.testEvalReader
> Those fail with some assert problem (method not found, I think the javascript is bogus):
> - org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactoryTest.testSingleScript
> - org.apache.solr.update.processor.StatelessScriptUpdateProcessorFactoryTest.testMultipleScripts



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org