Published: Jan 18 2012 / 09:44
This is really a change to fix compiler generated code that could cause subtle bugs. You would only notice the change if your code depends on the variable being visible outside of the loop's scope even though it was defined inside the loop in the code. Good comment by michelvoo:
"I wouldn't call it a breaking change, but rather an enabling change: code that was once subtly wrong will now start to behave as expected. Of course, some may have depended on the old behavior... – michielvoo"
Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.
Advertising - Terms of Service - Privacy - © 1997-2014, DZone, Inc.