|
From: Guido S. <Gui...@tr...> - 2006-08-11 12:19:41
|
Hi
I'm currently testing @Configurable and LTW. Everything worked/works =
fine with the 2.0rc2 distribution. This morning I then tried to use rc2 =
togehter with AspectJ 1.5.2 and had problems.
Then after seeing that 2.0rc3 has been released, i switched to the =
2.0rc3 distribution with the dependencies from there and I'm getting the =
same problems.
With RC3, the domain object doesn't get configured and the error I get =
on the console is the following (only parts of it):
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
2110 [main] FATAL AspectJ Weaver - [AspectJ] trouble in:=20
public class com.trivadis.aop.configurable.Address extends =
java.lang.Object:
private transient com.trivadis.aop.configurable.CodeRepository =
codeRepository
private long id
private String street
private String city
private com.trivadis.aop.configurable.Country country
public void =
setCodeRepository(com.trivadis.aop.configurable.CodeRepository):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 15)
ALOAD_1 // =
Lcom/trivadis/aop/configurable/CodeRepository; codeRepository
PUTFIELD =
com.trivadis.aop.configurable.Address.codeRepository =
Lcom/trivadis/aop/configurable/CodeRepository;
RETURN (line 16)
end public void =
setCodeRepository(com.trivadis.aop.configurable.CodeRepository)
public String getCity():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 28)
GETFIELD com.trivadis.aop.configurable.Address.city =
Ljava/lang/String;
ARETURN
end public String getCity()
public void setCity(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 32)
ALOAD_1 // Ljava/lang/String; city
PUTFIELD com.trivadis.aop.configurable.Address.city =
Ljava/lang/String;
RETURN (line 33)
end public void setCity(String)
public com.trivadis.aop.configurable.Country getCountry():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 36)
GETFIELD =
com.trivadis.aop.configurable.Address.country =
Lcom/trivadis/aop/configurable/Country;
ARETURN
end public com.trivadis.aop.configurable.Country getCountry()
public void setCountry(com.trivadis.aop.configurable.Country):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 40)
ALOAD_1 // =
Lcom/trivadis/aop/configurable/Country; country
PUTFIELD =
com.trivadis.aop.configurable.Address.country =
Lcom/trivadis/aop/configurable/Country;
RETURN (line 41)
end public void setCountry(com.trivadis.aop.configurable.Country)
public String getStreet():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 44)
GETFIELD =
com.trivadis.aop.configurable.Address.street Ljava/lang/String;
ARETURN
end public String getStreet()
public void setStreet(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 48)
ALOAD_1 // Ljava/lang/String; street
PUTFIELD =
com.trivadis.aop.configurable.Address.street Ljava/lang/String;
RETURN (line 49)
end public void setStreet(String)
private void <init>():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 53)
INVOKESPECIAL java.lang.Object.<init> ()V
RETURN
end private void <init>()
public static com.trivadis.aop.configurable.Address =
createAddress(String, String):
NEW com.trivadis.aop.configurable.Address (line =
58)
DUP
INVOKESPECIAL =
com.trivadis.aop.configurable.Address.<init> ()V
ASTORE_2
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 59)
ALOAD_0 // Ljava/lang/String; street
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 60)
ALOAD_1 // Ljava/lang/String; city
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 61)
ARETURN
end public static com.trivadis.aop.configurable.Address =
createAddress(String, String)
public com.trivadis.aop.configurable.Address withStreet(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 67)
ALOAD_1 // Ljava/lang/String; street
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 68)
ARETURN
end public com.trivadis.aop.configurable.Address withStreet(String)
public com.trivadis.aop.configurable.Address withCity(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 72)
ALOAD_1 // Ljava/lang/String; city
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 73)
ARETURN
end public com.trivadis.aop.configurable.Address withCity(String)
public com.trivadis.aop.configurable.Address forCountry(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 77)
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this
GETFIELD =
com.trivadis.aop.configurable.Address.codeRepository =
Lcom/trivadis/aop/configurable/CodeRepository;
ALOAD_1 // Ljava/lang/String; code
INVOKEINTERFACE =
com.trivadis.aop.configurable.CodeRepository.findCountryByCode =
(Ljava/lang/String;)Lcom/trivadis/aop/configurable/Country;
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCountry =
(Lcom/trivadis/aop/configurable/Country;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 78)
ARETURN
end public com.trivadis.aop.configurable.Address forCountry(String)
end public class com.trivadis.aop.configurable.Address
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
If I switch to compile time weaving, then everything works fine.
Do you have any idea what might be wrong. Am I doing something wrong. =
Just let me know, if you need the test case, I have a small project with =
only a few classes.
Thanks for your help
Guido
|