BUG: Missing type cast

6 posts, 0 answers
  1. Jörg
    Jörg avatar
    3 posts
    Member since:
    Aug 2012

    Posted 22 Aug 2014 Link to this post

    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



  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 27 Aug 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. Jörg
    Jörg avatar
    3 posts
    Member since:
    Aug 2012

    Posted 08 Dec 2014 Link to this post

    Hi,

    this was not fixed in the last update.
  5. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 10 Dec 2014 Link to this post

    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.

     
  6. Jörg
    Jörg avatar
    3 posts
    Member since:
    Aug 2012

    Posted 15 Apr Link to this post

    this bug ist still not fixed...

  7. Alexander
    Admin
    Alexander avatar
    80 posts

    Posted 18 Apr Link to this post

    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
Back to Top
DevCraft banner