[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RES: [aspectj-users] NullPointer in introductions
|
Thanks for your attention Ramnivas,
There is a simple example (the error seems to be the method overload):
// --------------------------------
// Test.java
// --------------------------------
package test;
public class Test {
int field;
void test() {
}
}
// --------------------------------
// Introductor.java
// --------------------------------
package test;
import java.util.*;
import java.lang.reflect.*;
import org.aspectj.lang.*;
public aspect Introductor {
public void Test.method(Method m) {
System.out.println(m);
}
public void Test.method(JoinPoint jp) {
System.out.println(jp);
}
}
-----Mensagem original-----
De: aspectj-users-admin@xxxxxxxxxxx [mailto:aspectj-users-admin@xxxxxxxxxxx]
Em nome de Ramnivas Laddad
Enviada em: sexta-feira, 19 de março de 2004 14:57
Para: aspectj-users@xxxxxxxxxxx
Assunto: Re: [aspectj-users] NullPointer in introductions
Andri,
This is not enough information to understand the problem. If you can, send a
minimal complete example that shows the problem.
-Ramnivas
--- Andri_Dantas_Rocha <ad-rocha@xxxxxxxxxx> wrote:
> Hi,
>
> I'm getting a NullPointer error when trying to introduct a method that
> have a JoinPoint parameter:
>
> public aspect IntroductionAspect {
> public void AClass.aMethod(JoinPoint jp) {
> ...
> }
> }
>
> Any suggestions?
>
> Thanks,
>
> Andri
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users