[aspectc-user] Simple code cause StackOverflowError

Olaf Spinczyk Olaf.Spinczyk at informatik.uni-erlangen.de
Fri Mar 7 10:37:50 CET 2003


Hi,

this was posted to the wrong list, but it shows that AspectJ users have 
problems as well. Anyway, we are still a big step behind AspectJ, but doing 
our best to overtake. :-))

Olaf

On Friday 07 March 2003 00:35, Peer Haja wrote:
> All,
>
> I have AspectJ installed. Running "ajc -version"
> gives:
>
> ajc version 1.0.6 (built Jul 24, 2002 6:21 PM PST)
> running on java 1.4.1-rc
>
>
> The following code taken from the online programmer
> guide (Chapter 2) cause the StackOverflowError:
>
> public class Test {
>   public static void main(String[] args) {
>  	foo();
>  }
>
>  static void foo() {
> 	goo();
>  }
>
>  static void goo() {
> 	System.out.println("hi");
>  }
> }
>
> aspect A {
> 	pointcut fooPC() : execution(void Test.foo());
> 	pointcut gooPC() : execution(void Test.goo());
> 	pointcut printPC() : call(void
> java.io.PrintStream.println(String));
>
> 	before() : printPC() {
> 		System.out.println("Should occur");
> 	}
> }
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at aspectc.org
> http://www.aspectc.org/mailman/listinfo/aspectc-user

-- 
Dr. Olaf Spinczyk
University of Erlangen, Computer Science 4
Martensstr. 1, D-91058 Erlangen, Germany

E-Mail: Olaf.Spinczyk at informatik.uni-erlangen.de
Phone:  +49.9131.85.27906
Fax:    +49.9131.85.28732



More information about the aspectc-user mailing list