Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.5
-
None
-
None
-
JVM 1.6.0-b105; running on Ubuntu 7.04 (I think)
Description
Example on page http://groovy.codehaus.org/Input+Output does not work; goes into an infinite loop:
new File("foo.txt").withReader { reader ->
while (true)
}
Either the documentation is wrong or Groovy is; don't know which.