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
The default source positioning of a CtElement is created with a null compilation unit. If ones tries to create the Java file associated with such a element with JavaOutputProcessor#createJavaFile an IllegalStateException is raised.
Dear all,
The default source positioning of a CtElement is created with a null compilation unit. If ones tries to create the Java file associated with such a element with JavaOutputProcessor#createJavaFile an IllegalStateException is raised.
The following test illustrates the issue:
https://github.com/seintur/spoon/blob/nullCompilationUnit_bug/src/test/java/spoon/test/sourcePosition/SourcePositionTest.java#L53
I'm not sure how to proceed.
In any case, IMHO, one should be able to generate the Java file for a CtClass created by the factory without having to bother about this.
Lionel.
The text was updated successfully, but these errors were encountered: