SharpCrafters Forum – Bug with multicasting aspect that holds generics - Part 2

SharpCrafters Support Forum

        


Bug with multicasting aspect that holds... Expand / Collapse
Author
Message
Posted 2/10/2010 10:31:35 AM


Pierre-Emmanuel Dautreppe

Community Member
Hello Gaël,

last year, I had opened a bug about the application of aspect on generic classes.
The description is here :
<!-- l --><a class="postlink-local" href="http://www.postsharp.org/forum/postsharp-laos/bug-with-multicasting-aspect-that-holds-generics-t990.html">postsharp-laos/bug-with-multicasting-aspect-that-holds-generics-t990.html</a><!-- l -->

and the opened bug is here :
<!-- m --><a class="postlink" href="http://www.postsharp.org/tracker/view.php?id=417">http://www.postsharp.org/tracker/view.php?id=417</a><!-- m -->

I am now using the latest 1.5 version that corrects this problem.
However a similar problem still exist :
[list]
take exactly the same code
put Aspect and IAspected in a DLL
put "ClasseTest : IAspected<string>" in another DLL
[/list:u]

When you compile such code, you will get a compilation error. (see below)
Do you see what's happening ?

Regards,
Pierre

Error 2 Unhandled exception: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: ordinal
  at PostSharp.CodeModel.GenericMap.GetGenericTypeParameter(Int32 ordinal)
  at PostSharp.CodeModel.GenericMap.GetGenericParameter(GenericParameterKind kind, Int32 ordinal)
  at PostSharp.CodeModel.TypeSignatures.GenericParameterTypeSignature.MapGenericArguments(GenericMap genericMap)
  at PostSharp.CodeModel.MethodSignature.MapGenericArguments(GenericMap genericMap)
  at PostSharp.Extensibility.Tasks.MulticastAttributeTask.<FindMethodOverrides>d__1.MoveNext()
  at PostSharp.Extensibility.Tasks.MulticastAttributeTask.ProcessInheritedAttributesAcrossAssemblies(TypeDefDeclaration typeDef, ITypeSignature baseType)
  at PostSharp.Extensibility.Tasks.MulticastAttributeTask.ProcessInheritedAttributesAcrossAssemblies()
  at PostSharp.Extensibility.Tasks.MulticastAttributeTask.Execute()
  at PostSharp.Extensibility.Project.ExecutePhase(String phase)
  at PostSharp.Extensibility.Project.Execute()
  at PostSharp.Extensibility.PostSharpObject.ExecuteProjects()
  at PostSharp.Extensibility.PostSharpObject.InvokeProject(ProjectInvocation projectInvocation)
  at PostSharp.MSBuild.PostSharpRemoteTask.Execute(PostSharpTaskParameters parameters, TaskLoggingHelper log)
Post #2638
Posted 2/10/2010 4:03:12 PM


Gael Fraiteur

SharpCrafters
I'll have a look, I don't know what happened.

I added a bug to the new issue tracker, but there is no web interface yet.
Post #2639
Posted 2/10/2010 4:31:43 PM


Pierre-Emmanuel Dautreppe

Community Member
Ok many thanks !
For following bug correction, we use the forum for now till the new issue tracker is online ?

(I was also following the bug <!-- m --><a class="postlink" href="http://www.postsharp.org/tracker/view.php?id=424">http://www.postsharp.org/tracker/view.php?id=424</a><!-- m -->)
Post #2640
Posted 2/10/2010 4:38:29 PM


Gael Fraiteur

SharpCrafters
I added your email address as a follower of the request.
If you have further requests for the issue, please contact <!-- e --><a href="mailto:issue@sharpcrafters.com">issue@sharpcrafters.com</a><!-- e --> and mention request #196.
Post #2641
« Prev Topic | Next Topic »


All times are GMT +1:00, Time now is 11:41am

Powered By InstantForum.NET v4.1.4 © 2010
Execution: 0.076. 7 queries. Compression Disabled.