Skip to content

Commit

Permalink
Fix for #712: find nodes moved by AbstractMethodDecoratingTransformation
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Sep 10, 2018
1 parent dd823e2 commit a53198c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,9 @@ public void visitJDT(IMethod method, ITypeRequestor requestor) {
enclosingElement = method;
try {
visitMethodInternal(methodNode);
// visit relocated @Transactional, et al. method bodies
Optional<List<MethodNode>> decorated = Optional.ofNullable(methodNode.getNodeMetaData("$DECORATED"));
decorated.ifPresent(decoratedMethodNodes -> decoratedMethodNodes.forEach(this::visitMethodInternal));
} catch (VisitCompleted | CancellationException e) {
throw e; // propagate
} catch (Exception e) {
Expand Down

0 comments on commit a53198c

Please sign in to comment.