final variable in for statement in Java 5 and 6
<p>Any idea why this compiles in Java 5 but not in Java 6?</p>

<pre><code>for(final int k=0; k&lt;10; k++);
</code></pre>

<p>What's the logic behind this? Any change to the scope of the variables between Java 5 and 6? </p>

<p>I cannot find anything in Sun documentations regarding this.</p>
