Bad decompilation

6 posts, 0 answers
  1. Chetan Panchal
    Chetan Panchal avatar
    4 posts
    Member since:
    Dec 2009

    Posted 26 Sep 2011 Link to this post

    Decompiler shows base() call in constructor of derived class. No need to show this!
  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    409 posts

    Posted 30 Sep 2011 Link to this post

    Hi Chetan Panchal,

     Can we get the assembly where this happens? It seems that this is not a common behavior and  Iwas not able to reproduce it locally.

    Regards,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Chetan Panchal
    Chetan Panchal avatar
    4 posts
    Member since:
    Dec 2009

    Posted 02 Oct 2011 Link to this post

    Try mscorlib.dll.

    You can check System.Collections.ArrayList for its ctor which takes Int32 as para....

    Regards
    Chetan
  5. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    409 posts

    Posted 06 Oct 2011 Link to this post

    Hello Chetan Panchal,

     I tried it out with JD version 2011.2.912.0 on mscorlib 4.0, 2.0 and the Silverlight mscorlib. I was not able to reproduce this issue. What version of JD are you using? Which mscorlib is that?

    Greetings,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Chetan Panchal
    Chetan Panchal avatar
    4 posts
    Member since:
    Dec 2009

    Posted 08 Oct 2011 Link to this post

    I am using version 2011.2.912.0 on mscorlib 4.0.

    Here is the decompile code:

    public ArrayList(int capacity)
    {
        object[] objArray;
        base();
        if (capacity < 0)
        {
            throw new ArgumentOutOfRangeException("capacity", Environment.GetResourceString("ArgumentOutOfRange_MustBeNonNegNum", new object[] { "capacity" }));
        }
        this._items = new object[capacity];
    }

  7. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    409 posts

    Posted 12 Oct 2011 Link to this post

    Ah, my bad. I thought it'd be public ArrayList(int capacity):base() and now I see base() call is inside the method body. Thanks a bunch for letting us know. We'll definitely fix that.


    Best wishes,
    Tsviatko Yovtchev
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner