You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2008/02/01 15:11:14 UTC

[jira] Reopened: (SLING-217) Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError

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

Carsten Ziegeler reopened SLING-217:
------------------------------------


The change does not work on Mac OS X as rt.jar is not available.
I reverted the change for now; 

> Scripting Resolver bundle compiled with JDK 6 may produce NoSuchMethodError
> ---------------------------------------------------------------------------
>
>                 Key: SLING-217
>                 URL: https://issues.apache.org/jira/browse/SLING-217
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> Sometimes a NoSuchMethodError is thrown in the DefaultSlingScript.verifyBindings method when filling the javax.servlet.SimpleBindings object for the script evaluation.
> This happens, if the scripting/resolver bundle is compiled with JDK 1.6, that is the generic SimpleBindings class contained in JDK 1.6. This causes the put method to be bound to the parameters (String, Object) while the BSF 3 SimpleBindings class from the scripting/api bundle used in a JDK 1.5 environment has a put method taking (Object, Object).
> Now, one fix of course is to make sure, the scripting/resolver bundler is compiled with JDK 1.5 instead of JDK 1.6. Another solution could be to use the scripting/api bundle (or the BSF 3 library) on the boot class path for the compilation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.