History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: RSRP-61925
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Ilya Ryzhenkov
Reporter: Ilya Ryzhenkov
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ReSharper

Generated GetHashCode not safe from OverflowException

Created: 19 Mar 08 13:48   Updated: 21 Mar 08 15:56
Component/s: Generate Action
Fix Version/s: 4.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Old URL: news://news.intellij.net/15825676.3271205918116310.JavaMail.jive@app4.labs.intellij.net


 Description  « Hide
This issue has been created from an NNTP article.

Recently I've been in the habit of setting "Check for arithmetic overflow/underflow" on for c# projects. This is when I noticed that the implementation of GetHashCode generated by Resharper is not really safe - it will often result in an overflow and therefore throw an exception.

I think Resharper needs to do a better job of generating the code so as to avoid this type of thing.

What do you think? Should this be added as a change request?

Thanks
Christian



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.