Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.0-beta-3
-
None
-
None
-
Groovy 1.0b3, RedHat Linux
[cmiller@localhost cmiller]$ java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
Description
When iterating through the tokens from a StringTokenizer, a null entry appears at the end of the list.
groovy> bar = new java.util.StringTokenizer("1/2/3/4/5", "/");
groovy> bar.each
groovy>
1
2
3
4
5
null