bug?

Posted by ved sharma on
URL: http://imagej.273.s1.nabble.com/bug-tp5014101.html

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