bug?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bug?

ved sharma
The following macro code runs fine in ImageJ (version 1.50a, Windows 7)

a = newArray(1, 2, 3);
if(0) {
        Array.reverse(a);
}

But, if I remove the curly braces, it throws an error:

a = newArray(1, 2, 3);
if(0)
        Array.reverse(a);

Looks to me that it's a bug.

Ved

___________________________________
Ved Sharma, PhD
Department of Anatomy and Structural Biology
Albert Einstein College of Medicine
Bronx, New York

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: bug?

Rasband, Wayne (NIH/NIMH) [E]
On Aug 21, 2015, at 3:13 PM, Ved Sharma <[hidden email]> wrote:

>
> The following macro code runs fine in ImageJ (version 1.50a, Windows 7)
>
> a = newArray(1, 2, 3);
> if(0) {
> Array.reverse(a);
> }
>
> But, if I remove the curly braces, it throws an error:
>
> a = newArray(1, 2, 3);
> if(0)
> Array.reverse(a);
>
> Looks to me that it's a bug.

This bug is fixed in the latest ImageJ daily build (1.50b13).

-wayne

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html