This is a migrated thread and some comments may be shown as answers.

BUG: Missing type cast

5 Answers 16 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jörg
Top achievements
Rank 1
Jörg asked on 22 Aug 2014, 03:03 PM
Hi,
while browsing List<T> noticed some strange index checks. After checking http://referencesource.microsoft.com/#mscorlib/system/collections/generic/list.cs it seems that JustDecompile ignores int -> uint type casts int the output which results in the following output:

public void Insert(int index, T item)
{
     if (index > this._size)
     {
         ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
     }
     [....]
}

the correct output should have been:

public void Insert(int index, T item)
{
     if ((uint)index > (uint)this._size)
     {
         ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_ListInsert);
     }
     [....]
}

JustDecompile Version 2014.1.225.0



5 Answers, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 27 Aug 2014, 11:44 AM
Hi,

Thanks for letting us know about this. We'll definitely put it on our list.

Do not hesitate to contact us again should you have any further questions.

Regards,
Tsviatko Yovtchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jörg
Top achievements
Rank 1
answered on 08 Dec 2014, 03:31 PM
Hi,

this was not fixed in the last update.
0
Tsviatko Yovtchev
Telerik team
answered on 10 Dec 2014, 12:00 PM
Hello,

Rather unfortunately, this did not make it to the task list for the last update. It is still on the list though and will be fixed. Please, update regularly.

Regards,
Tsviatko Yovtchev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jörg
Top achievements
Rank 1
answered on 15 Apr 2016, 02:59 PM

this bug ist still not fixed...

0
Alexander
Telerik team
answered on 18 Apr 2016, 05:43 PM
Hi,

The reason this bug to be not fixed yet, is that its backlog priority is relatively low, compared to the other backlog items. However, it will be fixed at some point, so please, update regularly and stay tuned.

Regards,
Alexander
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Jörg
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Jörg
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or