<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 5/5/16 1:07 PM, Eric Wedaa wrote:<br>
</div>
<blockquote
cite="mid:OFBA2D09C4.FD9E8DB1-ON85257FAA.005E0CE6-85257FAA.005E0CF1@marist.edu"
type="cite">
<pre wrap="">
If anybody can help I would greatly appreciate it. (I'm sure it's something simple I'm missing, but I'm not a big Java person.)
<Script><![CDATA[
var BasicAttribute = Java.type("edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute");
firstname = new BasicAttribute("firstname");
</pre>
</blockquote>
<br>
<blockquote
cite="mid:OFBA2D09C4.FD9E8DB1-ON85257FAA.005E0CE6-85257FAA.005E0CF1@marist.edu"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
Be sure to read the wiki section called "Semantic changes". You
don't just change the importPackage to Java.type(...). In
particular with Nashorn you can't just 'new' a new attribute like
that anymore in the script.
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</body>
</html>