[Mono-bugs] [Bug 621968] New: Gendarme - ArgumentOutOfRangeException from AvoidCodeDuplicatedInSameClassRule
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Jul 13 13:22:17 EDT 2010
http://bugzilla.novell.com/show_bug.cgi?id=621968
http://bugzilla.novell.com/show_bug.cgi?id=621968#c0
Summary: Gendarme - ArgumentOutOfRangeException from
AvoidCodeDuplicatedInSameClassRule
Classification: Mono
Product: Mono: Tools
Version: 2.6.x
Platform: x86
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Gendarme
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: eric.zeitler at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=375658)
--> (http://bugzilla.novell.com/attachment.cgi?id=375658)
zipped Debug directory for repro case
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.458.1 Safari/534.3
Rule: Gendarme.Rules.Smells.AvoidCodeDuplicatedInSameClassRule
Target: System.IO.Packaging.PackUriHelperInternal
Stack trace: System.ArgumentOutOfRangeException: Index was out of range. Must
be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32
index)
at Mono.Cecil.Cil.VariableDefinitionCollection.get_Item(Int32 index)
at Gendarme.Rules.Smells.InstructionMatcher.AreEquivalent(Instruction
source, Instruction target)
at Gendarme.Rules.Smells.InstructionMatcher.Match(Pattern pattern,
InstructionCollection target)
at
Gendarme.Rules.Smells.CodeDuplicatedLocator.GetDuplicatedCode(MethodDefinition
current, MethodDefinition target)
at
Gendarme.Rules.Smells.CodeDuplicatedLocator.CompareMethodAgainstTypeMethods(MethodDefinition
current, TypeDefinition targetType)
at
Gendarme.Rules.Smells.AvoidCodeDuplicatedInSameClassRule.CheckType(TypeDefinition
type)
at Gendarme.Framework.Runner.OnType(RunnerEventArgs e)
at Gendarme.GuiRunner.OnType(RunnerEventArgs e)
at Gendarme.Framework.Runner.Run()
at Gendarme.GuiRunner.Execute()Rule:
Gendarme.Rules.Correctness.EnsureLocalDisposalRule
Target: T
OpenTK.Graphics.TextureRegion2D`1::get_Item(System.Int32,System.Int32)
Stack trace: System.NullReferenceException: Object reference not set to an
instance of an object.
at Mono.Cecil.MethodReference.Resolve()
at
Gendarme.Rules.Correctness.EnsureLocalDisposalRule.DoesReturnDisposable(MethodReference
call)
at
Gendarme.Rules.Correctness.EnsureLocalDisposalRule.CheckMethod(MethodDefinition
method)
at Gendarme.Framework.Runner.OnMethod(RunnerEventArgs e)
at Gendarme.Framework.Runner.Run()
at Gendarme.GuiRunner.Execute()
Reproducible: Always
Steps to Reproduce:
1. Add the attached DLLs to be analyzed using No Limit/High/High/All Code.
Actual Results:
Report generated, but error message occured.
Expected Results:
Should have not encountered any errors.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list