[
https://issues.apache.org/jira/browse/SLING-1399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837516#action_12837516
]
Michael Dürig commented on SLING-1399:
--------------------------------------
Thanks for the patch. This fixes things for 1.6. But with the patch applied
compilation fails with 1.5.
AFAICS the reason for this is that the javax.scripting libraries come from the
JDK with 1.6 and from Apache bsf-api with 1.5. In the former case the the API
uses generic types and variable argument lists. The later uses raw types and
arrays.
> Not possible to build /contrib since ScalaScriptEngineFactory.scala in
> /scripting/scala/script contains an error
> ----------------------------------------------------------------------------------------------------------------
>
> Key: SLING-1399
> URL: https://issues.apache.org/jira/browse/SLING-1399
> Project: Sling
> Issue Type: Bug
> Components: Scripting
> Environment: Linux x64, Maven 2.2.1
> Reporter: Pontus Amberg
> Priority: Minor
> Attachments: scala-script-src-patch.txt
>
>
> Can't build /contrib since ScalaScriptEngineFactory.scala in
> contrib/scripting/scala/script/ contains an error
> /sling/contrib/scripting/scala/script/src/main/scala/org/apache/sling/scripting/scala/ScalaScriptEngineFactory.scala:55:
> error: class ScalaScriptEngineFactory needs to be abstract, since method
> getProgram in trait ScriptEngineFactory of type
> (java.lang.String*)java.lang.String is not defined
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.