Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

java.lang.IllegalArgumentException: Node is not inside the AST が多発する #37

Closed
tanimon opened this issue Jan 4, 2019 · 0 comments · Fixed by #38
Closed

java.lang.IllegalArgumentException: Node is not inside the AST が多発する #37

tanimon opened this issue Jan 4, 2019 · 0 comments · Fixed by #38

Comments

@tanimon
Copy link
Owner

tanimon commented Jan 4, 2019

問題は?

JDTOperation#applyjava.lang.IllegalArgumentException: Node is not inside the AST というエラーが多発する.

原因は?

発生箇所はここ.
https://github.com/a-tanikd/kGenProg/blob/ba946119fb4c19062c51baae98280f7dbc7284ba/src/main/java/jp/kusumotolab/kgenprog/project/jdt/SwapOperation.java#L26

次の条件が成り立つときに例外が発生する.

astNode.getAST() != astRewrite.getAST()
tanimon added a commit that referenced this issue Jan 7, 2019
Make SwapOperation not to throw exceptions saying "Node is not inside the AST"
tanimon added a commit that referenced this issue Jan 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant