SpoonLabs / astor

Automatic program repair for Java with generate-and-validate techniques :v::v:: jGenProg (2014) - jMutRepair (2016) - jKali (2016) - DeepRepair (2017) - Cardumen (2018) - 3sfix (2018)
https://hal.archives-ouvertes.fr/hal-01321615/document
GNU General Public License v2.0
208 stars 106 forks source link

Astor : Problem compiling the model with compliance level 8 and import io cannot be resolved #244

Closed VinayKabadi closed 4 years ago

VinayKabadi commented 4 years ago

bungee.txt Hello Team,

I am trying to run the Astor but I get the compliance Error [ERROR] fr.inria.astor.core.manipulation.MutationSupporter.buildSpoonModel(MutationSupporter.java:243) - Problem compiling the model with compliance level 8. ERROR] fr.inria.astor.core.manipulation.MutationSupporter.buildSpoonModel(MutationSupporter.java:245) - The import io cannot be resolved

I have attached the log file for your reference

In Astor Properties I have set

Java compliance Level

javacompliancelevel=8 alternativecompliancelevel=8

I am using java -version openjdk version "1.8.0_252" OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09) OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)

mvn compile and test run successfully but Astor is not able to generate fixes

git clone https://github.com/SpigotMC/BungeeCord/ git checkout d9a8311

mvn compile, mvn test

Failed tests: testOpenSSL(net.md_5.bungee.NativeCipherTest): Native cipher failed to load! testOpenSSLBenchmark(net.md_5.bungee.NativeCipherTest): Native cipher failed to load! Tests run: 5, Failures: 2, Errors: 0, Skipped: 0

java -cp astor.jar fr.inria.main.evolution.AstorMain -location /root/astor/examples/BungeeCord -mode jkali -scope package -failing net.md_5.bungee.NativeCipherTest -dependencies /root/astor/examples/lib:/usr/share/maven/lib -srcjavafolder /native/src/main/ -srctestfolder /native/src/test/ -binjavafolder /native/target/classes -bintestfolder /native/target/test-classes -flthreshold 0.5 -seed 10 -maxtime 100 -stopfirst true

Could you please advise what needs to fixed.

VinayKabadi commented 4 years ago

Had to add more dependencies as mentioned in pom.xml