Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Weaving Java Source Code - java.lang.StackOverflowError

I am attempting to write an aspect that weaves code into java.lang.StackOverflowError.  I want to receive a callback anytime a StackOverflowError is created, but through trial and error using the pointcut for execution(new(..)) doesn’t work on StackOverflow only Throwable will the constructor callback.  On further investigation when a StackOverflow error is created the <init> method is called in the trace, so I tried using the pointcut initializer(new(..)),but that also did not work.

 

Has anyone attempted anything similar, or have any suggestions on how I can accomplish weaving java.lang.StackOverflowError

 

Thanks,

 

Jim


Back to the top