DotGNU Portable.NET - Bugs: bug #15345, strings created in a while loop...
You are not allowed to post comments on this tracker with your current authentication level.
bug #15345: strings created in a while loop are not made null each iteration
| Submitter: | Andrew Yates <andrewy> | ||
| Submitted: | Sat 31 Dec 2005 11:27:22 PM UTC | ||
| Category: | None | Severity: | 3 - Normal |
| Item Group: | None | Status: | Invalid |
| Privacy: | Public | Assigned to: | None |
| Open/Closed: | Closed | ||
|
Fri 25 May 2007 12:50:30 PM UTC, comment #2: |
Klaus Treichel <ktreichel> |
|
Sat 31 Dec 2005 11:29:31 PM UTC, comment #1: I'm attaching the test code as the formatting was removed and this makes it more difficult to understand. |
Andrew Yates <andrewy> |
|
Sat 31 Dec 2005 11:27:22 PM UTC, original submission:
Strings (and probably every other type) created in a while loop are not made null each iteration. Instead, their value is preserved across iterations.
|
Andrew Yates <andrewy> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

This is a problem that cscc doesn't check is the value is initialized before it's used. The behavior is is totally correct because you'll have to initialize test yourself.