AdviceAdapter bug with method enter/exit
I found a bug in AdviceAdapter from ams v3.2 stable release.
The bug is when in constructor of a class has more complex
code like this when call this(...):
...
public AdviceAdapter_Bug(String t, int size, int factor, int minimumFill) {
this(size, factor, minimumFill = minimumFill <= size * factor ? minimumFill
: size * factor);
System.out.println("t: " + t + " size: " + size + "factor: " + factor);
}
protected AdviceAdapter_Bug(int size, int factor, int minimumFill) {
System.out.println("size: " + size + "factor: " + factor);
}
...
The bug is that for first constructor there is no onMethodEnter() call.
I check the AdviceAdapter code and I think it is a bug with calculating
the branches.
I attached simple test class which could be used to test AdviceAdapter