yuwei5380 / jsonplugin

Automatically exported from code.google.com/p/jsonplugin
0 stars 0 forks source link

Error in iterator loop #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In JSONWriter, the array method the loop can get into a never ending loop.
 If shouldExcludeProperty returns true the iter.next() is never called, and
the Iterator never moves.

A simple solution would be to save the result of iter.next() before
checking that method, or calling it before the continue call.

Original issue reported on code.google.com by byar...@gmail.com on 8 Sep 2008 at 10:52

GoogleCodeExporter commented 8 years ago
Nice catch, thanks for reporting. Fixed on trunk

Original comment by musa...@gmail.com on 21 Oct 2008 at 2:51