<div dir="ltr"><div>Yes, that's what I tried initially, but I get this exception:<br><br>javax.script.ScriptException: TypeError: null has no such function "getValues" in <eval> at line number 3<br> at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:467) ~[nashorn.jar:na]<br>....<br><br></div>This tells two things, first that this is nashorn (and not rhino) and second, that the testing variable was null. <br><div><br></div><div>Kind regards,<br></div><div>Athanasios<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 29, 2015 at 5:54 PM, Peter Schober <span dir="ltr"><<a href="mailto:peter.schober@univie.ac.at" target="_blank">peter.schober@univie.ac.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Athanasios Douitsis <<a href="mailto:aduitsis@gmail.com">aduitsis@gmail.com</a>> [2015-10-29 16:51]:<br>
<span class="">> <Script><![CDATA[<br>
> var BasicAttribute = Java.type("edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute");<br>
> if (null == testing) testing = new BasicAttribute("testing");<br>
> testing.getValues().add("whatever");<br>
> ]]></Script><br>
<br>
</span>You don't need the first two lines of that.<br>
The v3 wiki has documentation on the Rhino/Nashorn changes<br>
specifically, plus simple examples for Nashorn/Java8 at the end.<br>
<span class="HOEnZb"><font color="#888888">-peter<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Athanasios Douitsis<br><br><br></div>
</div>