<html>
    <head>
      <base href="http://fiji.sc/bugzilla/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:hinerm@gmail.com" title="Mark Hiner <hinerm@gmail.com>"> <span class="fn">Mark Hiner</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - variable result containing an array gives an error"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=930">bug 930</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>CONFIRMED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>hinerm@gmail.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - variable result containing an array gives an error"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=930#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_CONFIRMED "
   title="CONFIRMED - variable result containing an array gives an error"
   href="http://fiji.sc/bugzilla/show_bug.cgi?id=930">bug 930</a>
              from <span class="vcard"><a class="email" href="mailto:hinerm@gmail.com" title="Mark Hiner <hinerm@gmail.com>"> <span class="fn">Mark Hiner</span></a>
</span></b>
        <pre>Confirmed. The error message is:

'[' or '.' expected


This comes from IJ1 helper passing the macro:

result = -17974594
result = newArray(3);call("net.imagej.legacy.plugin.IJ1MacroEngine.setOutput",
"result", result);

to IJ.runMacro, which errors out when attempting to look up the value of the
result variable here:

<a href="https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/macro/Interpreter.java#L1629-1648">https://github.com/imagej/ImageJA/blob/master/src/main/java/ij/macro/Interpreter.java#L1629-1648</a>

Looks like it's wants to evaluate an index of the array instead of just
returning the array itself.

Note that storing the array into a different variable name seems to be fine (no
exception at least). e.g.:

test = newArray(3);</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>