Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.5
-
Fix Version/s: 1.5.7, 1.6-beta-2
-
Component/s: None
-
Labels:None
-
Environment:JVM 1.6.0-b105; running on Ubuntu 7.04 (I think)
-
Number of attachments :
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.