A federal appeals court on Friday reversed the conviction of a former Goldman Sachs programmer on charges he stole computer code, ordering an acquittal in a case that tested the boundaries of what can be considered a crime as companies seek to protect their intellectual property from competitors.

The unusually speedy mandate from the 2nd U.S. Circuit Court of Appeals in Manhattan will result in freedom for Sergey Aleynikov, of North Caldwell, N.J. He has been in prison since he was sentenced in March to more than eight years in prison. He was convicted in December 2010 of stealing trade secrets and transporting stolen property in interstate and foreign commerce.