Community
Participate
Working Groups
using a new-style for-loop inside a "classic" for loop, produces the following error: "Type mismatch: cannot convert from int to boolean" here is a code-sample: public void bug(List<String> lines) { for (int i=0; i<10; i++) { // here the "i++" is marked bad for (String test: lines) { System.out.println(test); } } } PS: using ecplise3.0RC1 & cheetah V0.05
Error is due to invalid parse. Outer for statement got parsed into: for (int i = 0;; (i ++); )
Fixed and released in stream 1.5. Regression test added.