Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.7, 1.6-beta-2
-
None
-
All
Description
Given the following code:
for(;;) {
}
groovyc generates the following bytecode:
114: bipush 0
116: ifeq 122
119: goto 114
Unfortunately, that bipush 0/ifeq means that this loop always exits immediately, unlike javac, which treats that identically to while(true) {}