This article has been updated to reflect and earlier correction.

A Bronx judge has dismissed criminal charges against a man accused of carrying a “gravity knife,” despite the fact that a court system reform bill seeking to lighten penalties for carrying such a device never made it through the state Legislature.