Re: Bug in 0.10-RC2?

"Michael Nascimento Santos" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
If you are working with inner classes, AW seems to be right, in a certain
(scary) manner. Inner classes constructors *always* take as a first
parameter an instance of the outer class. It is injected by the compiler.

So, when dealing with inner classes, AW should look for constructors that
take the outer class followed by nothing or a CrossCuttingInfo parameter.

Just my 2c.

[]s
Michael Nascimento Santos
JSR-207 Expert Group Member
http://today.java.net/pub/au/80

----- Original Message ----- 
From: "Jérôme BERNARD" <[email protected]>
To: "aspectwerkz-devel" <aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org>
Sent: Monday, May 03, 2004 5:47 PM
Subject: [aspectwerkz-devel] Bug in 0.10-RC2?


> I have an aspect using attributes. This aspect does introduction and I
> need the mixin to have access to the CrossCuttingInfo so I modified the
> mixin so that it has a constructor with a CrossCuttingInfo parameter. At
> runtime, AW complains that my class does not have a public constructor
> with either a default contructor or a CrossCuttingInfo parameter type.
>
> This is obviously not the case, so either AW's message is misleading or
> there is a bug searching for constructors in inner classes.
>
> Regards,
> Jérôme.
> _______________________________________________
> aspectwerkz-devel mailing list
> aspectwerkz-devel-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org
> http://lists.codehaus.org/mailman/listinfo/aspectwerkz-devel
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.