Closed jose closed 4 years ago
This might be due to the underline nopol code and not to astor. (More on this here.)
I can reproduce the bug with a minimal example:
java -cp /home/martin/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/home/martin/.m2/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar:target/spoon-core-8.4.0-SNAPSHOT-jar-with-dependencies.jar:. foo
log4j:ERROR setFile(null,true) call failed.
The failure comes from the dependency to log4j version 1.2.x (aka log4j12) via slf4j-log4j12
Since log4j1.2 is not supported anymore since 2015, the workaround consists of correctly configuring the SL4J logging pipeline.