RE: Bug in 0.10-RC2?

"Jonas Boner" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
You are right Michael, in the case of inner member classes. Therefore, Jerome, you should declare your inner class as *static* and it should work as expected.

I believe that this is documented ;-)

/Jonas

-----Original Message-----
From:	aspectwerkz-devel-admin-81qHHgoATdGxIXFVlbCvtR2eb7JE58TQ@public.gmane.org on behalf of Michael Nascimento Santos
Sent:	Mon 5/3/2004 9:59 PM
To:	Jérôme BERNARD; aspectwerkz-devel
Cc:	
Subject:	Re: [aspectwerkz-devel] Bug in 0.10-RC2?
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
>
_______________________________________________
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.