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

Bad decompilation

5 Answers 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chetan Panchal
Top achievements
Rank 1
Chetan Panchal asked on 26 Sep 2011, 06:02 AM
Decompiler shows base() call in constructor of derived class. No need to show this!

5 Answers, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 30 Sep 2011, 09:24 AM
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 >>

0
Chetan Panchal
Top achievements
Rank 1
answered on 02 Oct 2011, 08:30 AM
Try mscorlib.dll.

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

Regards
Chetan
0
Tsviatko Yovtchev
Telerik team
answered on 06 Oct 2011, 09:10 AM
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 >>

0
Chetan Panchal
Top achievements
Rank 1
answered on 08 Oct 2011, 06:51 AM
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];
}

0
Tsviatko Yovtchev
Telerik team
answered on 12 Oct 2011, 09:11 AM
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 >>

Tags
General Discussions
Asked by
Chetan Panchal
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Chetan Panchal
Top achievements
Rank 1
Share this question
or