itd problems with ajdt 1.6.3 [message #599463] |
Sun, 11 January 2009 11:56 |
Max Meier Messages: 4 Registered: July 2009 |
Junior Member |
|
|
Hello,
i have some problems using itd with ajdt 1.6.3.
environment:
- clean install of eclipse-SDK-3.4.1-win32
- using http://download.eclipse.org/tools/ajdt/34/dev/update
installing 1.6.3.20090110234235 AJDT (JT Weaving)
installing 1.0.0.200901090822 Equinox Aspects Feature
simple test implementation:
//
package test;
public enum MyEnum {
C1, C2;
}
//
package test.mi;
public aspect MixIn1 {
public interface IMixIn1 {};
declare parents : test.mo.* implements Object;
public String IMixIn1.f11;
public void IMixIn1.m11() {
System.out.println("called m11");
};
public void IMixIn1.m12() {
System.out.println("called m12");
};
}
//
package test.mi;
public aspect MixIn2 {
public interface IMixIn2 {};
declare parents : test.mo.* implements IMixIn2;
public void IMixIn2.m21() {
System.out.println("called m21");
};
}
//
package test.mi;
import test.*;
import static test.MyEnum.*;
public aspect MixIn3 {
private static MyEnum me1 = MyEnum.C1;
private static MyEnum me2 = C2;
public interface IMixIn3 {};
declare parents : test.mo.* implements IMixIn3;
public void IMixIn3.m31() {
System.out.println(me1 + " " + me2);
};
}
//
package test.mo;
import test.mi.MixIn1.IMixIn1;
import test.mi.MixIn2.IMixIn2;
import test.mi.MixIn3.IMixIn3;
public class MixedObject implements IMixIn1, IMixIn2, IMixIn3 { }
//
package test.mo;
public class Test {
public static void main(String[] args) {
MixedObject mo = new MixedObject();
mo.m11();
mo.m12();
mo.m31();
mo.f11 = "value";
System.out.println(mo.f11);
}
}
//
package test.mo;
public class Test1 {
public static void main(String[] args) {
new Test1().m21();
new Test1().m31();
}
}
problem descriptions:
- MixIn1 with "wrong" 'implements Objects' works "fine" with weaving
method and field only into MixedObject
- MixIn2 with correct 'implements IMixIn2' weaves into all classes of
package test.mo
- MixIn3 has marker "MyEnum$C1 cannot be resolved", but works fine
- MixedObject code assist doesn't work for IMixIn* in implements clause,
List shows them but selection doesn't work
- context menu "Declared On" at "declare parents : test.mo.* implements
IMixIn2;" in MinIn2 shows Test, Test1
- no aspectj marker at "declare parents : test.mo.* implements Object;" in
MinIn1
- code works but should not, Test1 and Test2 are executable
question:
bug or my mistake ?
Thanks,
Max
|
|
|
Powered by
FUDForum. Page generated in 0.03819 seconds