fixed.
On 20/02/2008, Andy Clement <[EMAIL PROTECTED]> wrote: > the bug is targetted for 1.6.0m2 and 1.6.0m2 is soon now, within a > couple of weeks. > > Andy. > > On 20/02/2008, Guillaume Lasnier <[EMAIL PROTECTED]> wrote: > > > > Hi, > > Did you have the opportunity to evaluate that bug? Can you give a time frame > > towards when you think this bug will be fixed. > > > > Regards > > > > > > Guillaume Lasnier wrote: > > > > > > > > > Hi, > > > I tested it with AJDT 1.5.1 and aspecjtrt 1.5.4. I was not able to reopen > > > the bug so I cloned it : > > > https://bugs.eclipse.org/bugs/show_bug.cgi?id=216311 > > > > > > Regards > > > > > > Guillaume Lasnier * Technical Architecture Team Leader * SunGard * Asset > > > Arena * 147 Bureaux de la Colline, Bâtiment E * 92213 Saint-Cloud CEDEX * > > > France * Phone: +33 1 55 39 18 74 * Fax: +33 1 55 39 18 01 * > > > http://www.sungard.com/assetarena > > > > > > P Think before you print > > > > > > > > > -----Message d'origine----- > > > De : [EMAIL PROTECTED]@SUNGARD De la part de "Andy > > > Clement" <[EMAIL PROTECTED]> > > > Envoyé : mercredi 23 janvier 2008 18:38 > > > À : [email protected] > > > Objet : Re: [aspectj-users] inter-type declaration of a field variable is > > > not serialized using Java 5 Annotations > > > > > > Are you on an up to date version of AspectJ that came out since that > > > fix went in? If you are then please reopen the bug and attach your > > > new testcase. > > > > > > cheers > > > Andy. > > > > > > On 23/01/2008, Guillaume Lasnier <[EMAIL PROTECTED]> wrote: > > >> > > >> > > >> > > >> > > >> Hi, > > >> > > >> I am running into the same problem described here : > > >> http://dev.eclipse.org/mhonarc/lists/aspectj-users/msg07308.html. > > >> > > >> > > >> > > >> Except I use the @Annotations style. I wrote an example taken from > > >> https://bugs.eclipse.org/bugs/show_bug.cgi?id=168063 > > >> > > >> > > >> > > >> I have the following interface : > > >> > > >> > > >> > > >> public interface IPersistable extends Serializable { > > >> > > >> > > >> > > >> int getId(); > > >> > > >> > > >> > > >> void setId(int id); > > >> > > >> > > >> > > >> } > > >> > > >> > > >> > > >> And the following aspect : > > >> > > >> @Aspect > > >> > > >> public class Persistability { > > >> > > >> > > >> > > >> static class Persistable implements IPersistable { > > >> > > >> > > >> > > >> private int id; > > >> > > >> > > >> > > >> public Persistable() { > > >> > > >> super(); > > >> > > >> } > > >> > > >> > > >> > > >> public int getId() { > > >> > > >> return id; > > >> > > >> } > > >> > > >> > > >> > > >> public void setId(int id) { > > >> > > >> this.id = id; > > >> > > >> } > > >> > > >> > > >> > > >> } > > >> > > >> > > >> > > >> @DeclareParents(value = "PersistabilityTest", defaultImpl = > > >> Persistable.class) > > >> > > >> private IPersistable observable; > > >> > > >> > > >> > > >> /** > > >> > > >> * > > >> > > >> * @param bean > > >> > > >> */ > > >> > > >> @Pointcut("initialization(IPersistable.new(..)) && this(bean) && > > >> !this(Persistable)") > > >> > > >> void init(IPersistable bean) { > > >> > > >> } > > >> > > >> > > >> > > >> /** > > >> > > >> * @param bean > > >> > > >> */ > > >> > > >> @Before("init(bean)") > > >> > > >> public void beforeInit(IPersistable bean) { > > >> > > >> bean.setId(System.identityHashCode(bean)); > > >> > > >> } > > >> > > >> > > >> > > >> } > > >> > > >> > > >> > > >> And the Test : > > >> > > >> public class PersistabilityTest { > > >> > > >> > > >> > > >> @Test > > >> > > >> public void testSerialization() throws Exception { > > >> > > >> > > >> > > >> PersistabilityTest persistabilityTest1 = new > > >> PersistabilityTest(); > > >> > > >> ByteArrayOutputStream bos = new ByteArrayOutputStream(); > > >> > > >> ObjectOutputStream oos = new ObjectOutputStream(bos); > > >> > > >> > > >> > > >> oos.writeObject(persistabilityTest1); > > >> > > >> > > >> > > >> ByteArrayInputStream bis = new > > >> ByteArrayInputStream(bos.toByteArray()); > > >> > > >> ObjectInputStream ois = new ObjectInputStream(bis); > > >> > > >> > > >> > > >> PersistabilityTest persistabilityTest2 = (PersistabilityTest) > > >> ois.readObject(); > > >> > > >> > > >> > > >> Assert.assertTrue(persistabilityTest1 instanceof IPersistable); > > >> > > >> > > >> > > >> Assert.assertTrue(persistabilityTest2 instanceof IPersistable); > > >> > > >> System.out.println("persistabilityTest2 is Persistable id=" + > > >> ((IPersistable) persistabilityTest2).getId()); > > >> > > >> > > >> > > >> Assert.assertEquals(((IPersistable) persistabilityTest1).getId(), > > >> ((IPersistable) persistabilityTest2).getId()); > > >> > > >> > > >> > > >> } > > >> > > >> } > > >> > > >> > > >> > > >> The test fails at the last line where I expect the id to be equal > > >> > > >> > > >> > > >> When I look at the decompiled code for PersistabilityTest, the ITD field > > >> delegate is transient!! > > >> > > >> > > >> > > >> Do I have to file a bug for this issue? > > >> > > >> > > >> > > >> Regards > > >> > > >> > > >> > > >> Guillaume Lasnier * Technical Architecture Team Leader * SunGard * Asset > > >> Arena * 147 Bureaux de la Colline, Bâtiment E * 92213 Saint-Cloud CEDEX * > > >> France * Phone: +33 1 55 39 18 74 * Fax: +33 1 55 39 18 01 * > > >> http://www.sungard.com/assetarena > > >> > > >> P Think before you print > > >> > > >> > > >> _______________________________________________ > > >> aspectj-users mailing list > > >> [email protected] > > >> https://dev.eclipse.org/mailman/listinfo/aspectj-users > > >> > > >> > > > _______________________________________________ > > > aspectj-users mailing list > > > [email protected] > > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > > > > > > > > > > _______________________________________________ > > > aspectj-users mailing list > > > [email protected] > > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > > > > > > > > -- > > View this message in context: > > http://www.nabble.com/RE%3A-inter-type-declaration-of-a-field-variable-is-not%09serialized-using-Java-5-Annotations-tp15048122p15588716.html > > Sent from the AspectJ - users mailing list archive at Nabble.com. > > > > _______________________________________________ > > aspectj-users mailing list > > [email protected] > > https://dev.eclipse.org/mailman/listinfo/aspectj-users > > > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
