Closed sanmibuh closed 1 year ago
Maybe if AspectJ adds a Generated
named annotation in the injected code it could be fixed 🤔
https://github.com/hcoles/pitest/issues/347#issuecomment-301184718
I understand how that would be helpful for you when using pitest, but I do not feel inclined to add extra annotations to AspectJ just to address this. I am and have been the only active developer for a while now, and in addition to simply not having the cycles to implement and thoroughly test this, it also seems to be risky. AspectJ is used in lots of enterprise software, and I want to avoid breaking anything or adding more overhead than necessary to class files, maybe making classes too big for the JVM in the process, just to satisfy the needs of a testing tool.
Hello, Using AspectJ with pitest, I have a false positive mutator. I think it is because of the null check that inserts AspectJ. At the generated class I see:
And the report returns:
I have created this demo repo for check the issue: https://github.com/sanmibuh/pitest-aspectj You could check running
./gradlew clean build pitest
Im not sure if the problem if on pitest or in aspectj so I have created an issue at Pitest also https://github.com/hcoles/pitest/issues/1097