Closed khatchad closed 5 years ago
Looks like the enclosing type declaration is returning null here: https://github.com/ponder-lab/Logging-Level-Evolution-Plugin/blob/a84aa094dbd00ade8867d3416cf04702c911d496/edu.cuny.hunter.log.core/src/edu/cuny/hunter/log/core/analysis/LogInvocation.java#L160
That is, this.getEnclosingTypeDeclaration()
returns null.
Seems like it's also happening in selenium.
One failing case is:
It looks like the log invocation is in an enum.
Hm, an enum is a type. Shouldn't be a problem.
Actually, they are separate.
I am checking its AST tree.
It's in the docs:
They are separate.
I see. That's why the tool gets null
for type declaration.
This issue is fixed by @khatchad through https://github.com/ponder-lab/Logging-Level-Evolution-Plugin/commit/6db0c7ae266282be6830af245ebf5f0df40292da
The new NPE of type declaration is: https://github.com/ponder-lab/Logging-Level-Evolution-Plugin/issues/174
https://github.com/eclipse/californium.git 0dd6db579be90c514dd765027ec55ed7a4668337
Seems like it's occurring in the subproject "scandium".