|
|
|
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)
|
|
|
|
|
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.
|
|
|
|
|
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 -->)
|
|
|
|
|
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.
|
|
|
|