You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like when HandleHelper.handle calls annotatedType.directUp(), if the class is nested immediately within a method then the result is the method. As this is not a block or a case statement, getStatementsFromJcNode returns null, and the handler fails with an error.
Describe the bug
It looks like when
HandleHelper.handle
callsannotatedType.directUp()
, if the class is nested immediately within a method then the result is the method. As this is not a block or a case statement,getStatementsFromJcNode
returns null, and the handler fails with an error.To Reproduce
With L1.java (the example in the docs):
I get
If I add an extra block around the body:
then it works:
Expected behavior
I expected the example to compile.
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: