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
09:25:19.480 [main] ERROR jdt.JDTCommentBuilder - // is not added into the AST
spoon.reflect.declaration.ParentNotInitializedException: parent not initialized for class spoon.support.reflect.code.CtCommentImpl (/PATHTOSOURCE/OP10704.java:1686)
at spoon.support.reflect.declaration.CtElementImpl.getParent(CtElementImpl.java:375) ~[spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTCommentBuilder.insertCommentInAST(JDTCommentBuilder.java:493) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTCommentBuilder.buildComment(JDTCommentBuilder.java:157) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTCommentBuilder.build(JDTCommentBuilder.java:113) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.buildModel(JDTBasedSpoonCompiler.java:477) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.buildUnitsAndModel(JDTBasedSpoonCompiler.java:390) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.buildSources(JDTBasedSpoonCompiler.java:339) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:122) [spoon-core-7.1.0.jar:?]
at spoon.support.compiler.jdt.JDTBasedSpoonCompiler.build(JDTBasedSpoonCompiler.java:105) [spoon-core-7.1.0.jar:?]
at spoon.Launcher.buildModel(Launcher.java:767) [spoon-core-7.1.0.jar:?]
at xxx.xxxxxx.xxxxxx.xxxxxxx.ApplicationInitFinder.main(ApplicationInitFinder.java:65) [main/:?]
The text was updated successfully, but these errors were encountered:
surli
changed the title
spoon.reflect.declaration.ParentNotInitializedException: parent not initialized for class spoon.support.reflect.code.CtCommentImpl
comment in lambda expression triggers a ParentNotInitializedException
Nov 30, 2018
I've tested this with 7.5.0-beta-20 and there seems to be a regression.
Its exactly the same code from above.
09:18:26.404 [main] ERROR JDTCommentBuilder - "// " cannot be added into the AST, with parent class spoon.support.reflect.code.CtLambdaImpl at (.... OP10704.java:1587), please report the bug by posting on #2482
It looks like comments in lambda expressions are a problem for 7.1.0 version of spoon lib.
The text was updated successfully, but these errors were encountered: