Greetings,
I have difficulty with using -dava output when one compiles with abc.
Below is a simple class and aspect I made.
I compile it with the -dava option and it makes a folder with the woven
.java files in it.
The normal compiled output runs as expected. When I attempt to compile the
.java woven files from the dava output folder
I get this error:
TestAspect.java:44: return outside method
return;
^
1 error
As one can see - it is attempting to return from a static block.
static
{
TestAspect DavaTemp_abc$perSingletonInstance;
DavaTemp_abc$perSingletonInstance = null;
try
{
DavaTemp_abc$perSingletonInstance = new TestAspect();
return;
}
catch (Throwable catchLocal$1)
{
abc$initFailureCause = catchLocal$1;
}
}
I much appreciate if anyone be able to aid me in my endeavours to get this
working with abc?
Thank you much!
Léo.
This is my simple aspect and class:
public aspect TestAspect
{
before(): printAspect()
{
System.out.println("Inside Aspect");
}
pointcut printAspect():
call(void TestClass.doSomething(String));
}
public class TestClass
{
public TestClass()
{
}
public void doSomething(String x)
{
System.out.println(x);
}
public static void main(String args[])
{
TestClass tc = new TestClass();
tc.doSomething("class");
}
}
Received on Sat Mar 15 2008 - 11:06:59 GMT
This archive was generated by hypermail 2.2.0 : Sat Mar 15 2008 - 12:10:11 GMT