Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] constructor problem in inner class

Hello,

I want to know if there are known problems with inner classes. I have an (empty) inner class:

    private static class InnerClass {
    }

It seems that my pointcut

    execution(*..new(*, ..))

matches also the constructor of this inner class. Is this possible?
If I put an (empty) constructor inside it works as expected (the pointcut does not match)

    private static class InnerClass {
        public InnerClass() {}
    }

And how can I exclude the inner classes from the pointcut?

regards,
Oliver
--
Oliver Böhm
http://www.javatux.de


Back to the top