Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on sos-builder01 (lin) in workspace /builds/workspace/npefix [WS-CLEANUP] Deleting project workspace... [WS-CLEANUP] Deferred wipeout is used... [WS-CLEANUP] Done No credentials specified Cloning the remote Git repository Cloning repository https://github.com/Spirals-Team/npefix.git > git init /builds/workspace/npefix # timeout=10 Fetching upstream changes from https://github.com/Spirals-Team/npefix.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/Spirals-Team/npefix.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/Spirals-Team/npefix.git # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url https://github.com/Spirals-Team/npefix.git # timeout=10 Fetching upstream changes from https://github.com/Spirals-Team/npefix.git > git fetch --tags --progress https://github.com/Spirals-Team/npefix.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10 Checking out Revision 80cfc38d4c3d5244c1a74c86e285193bb2670ea6 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 80cfc38d4c3d5244c1a74c86e285193bb2670ea6 # timeout=10 Commit message: "Update README.md" > git rev-list --no-walk 80cfc38d4c3d5244c1a74c86e285193bb2670ea6 # timeout=10 [npefix] $ /bin/sh -xe /tmp/jenkins1495378042885306319.sh + rm -rf /builds/.m2/repository/fr/inria/gforge/spoon [npefix] $ /bin/sh -xe /tmp/jenkins8750573815621293444.sh + mvn versions:use-latest-versions -DallowSnapshots=true Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building npefix 0.8-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- versions-maven-plugin:2.4:use-latest-versions (default-cli) @ npefix --- [INFO] Major version changes allowed [INFO] artifact junit:junit: checking for updates from gforge.inria.fr-snapshot [INFO] Updated junit:junit:jar:4.11 to version 4.13 [INFO] artifact org.json:json: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.json:json: checking for updates from central [INFO] Updated org.json:json:jar:20160212 to version 20190722 [INFO] artifact org.hamcrest:hamcrest-core: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.hamcrest:hamcrest-core: checking for updates from central [INFO] Updated org.hamcrest:hamcrest-core:jar:1.3 to version 2.2 [INFO] artifact fr.inria.gforge.spoon:spoon-core: checking for updates from gforge.inria.fr-snapshot [INFO] Updated fr.inria.gforge.spoon:spoon-core:jar:7.5.0-SNAPSHOT to version 8.1.0-SNAPSHOT [INFO] artifact org.slf4j:slf4j-simple: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.slf4j:slf4j-simple: checking for updates from central [INFO] Updated org.slf4j:slf4j-simple:jar:1.7.6 to version 2.0.0-alpha1 [INFO] artifact log4j:log4j: checking for updates from gforge.inria.fr-snapshot [INFO] artifact log4j:log4j: checking for updates from central [INFO] artifact com.cloudbees:diff4j: checking for updates from gforge.inria.fr-snapshot [INFO] artifact com.cloudbees:diff4j: checking for updates from central [INFO] Updated com.cloudbees:diff4j:jar:1.2 to version 1.3 [INFO] artifact org.eclipse.core:org.eclipse.core.runtime: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.eclipse.core:org.eclipse.core.runtime: checking for updates from central [INFO] Updated org.eclipse.core:org.eclipse.core.runtime:jar:3.6.0.v20100505 to version 3.7.0 [INFO] artifact org.eclipse.core:org.eclipse.core.resources: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.eclipse.core:org.eclipse.core.resources: checking for updates from central [INFO] Updated org.eclipse.core:org.eclipse.core.resources:jar:3.6.0.v20100526-0737 to version 3.7.100 [INFO] artifact org.glassfish.tyrus.bundles:tyrus-standalone-client: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.glassfish.tyrus.bundles:tyrus-standalone-client: checking for updates from central [INFO] Updated org.glassfish.tyrus.bundles:tyrus-standalone-client:jar:1.13.1 to version 1.16 [INFO] artifact org.apache.maven:maven-model: checking for updates from gforge.inria.fr-snapshot [INFO] artifact org.apache.maven:maven-model: checking for updates from central [INFO] Updated org.apache.maven:maven-model:jar:3.5.0 to version 3.6.3 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.868 s [INFO] Finished at: 2020-03-19T05:24:09+01:00 [INFO] Final Memory: 24M/191M [INFO] ------------------------------------------------------------------------ + mvn test Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building npefix 0.8-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/maven-metadata.xml [WARNING] Could not apply configuration for gforge.inria.fr-snapshot to wagon org.apache.maven.wagon.providers.http.HttpWagon:Cannot find 'preferredAuthentications' in class org.apache.maven.wagon.providers.http.HttpWagon 1017/1017 B Downloaded: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/maven-metadata.xml (1017 B at 6.9 KB/sec) Downloading: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/spoon-core-8.1.0-20200318.234144-196.pom [WARNING] Could not apply configuration for gforge.inria.fr-snapshot to wagon org.apache.maven.wagon.providers.http.HttpWagon:Cannot find 'preferredAuthentications' in class org.apache.maven.wagon.providers.http.HttpWagon 4/8 KB 8/8 KB 8/8 KB Downloaded: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/spoon-core-8.1.0-20200318.234144-196.pom (8 KB at 220.2 KB/sec) Downloading: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-pom/1.0/spoon-pom-1.0.pom [WARNING] Could not apply configuration for gforge.inria.fr-snapshot to wagon org.apache.maven.wagon.providers.http.HttpWagon:Cannot find 'preferredAuthentications' in class org.apache.maven.wagon.providers.http.HttpWagon Downloading: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-pom/1.0/spoon-pom-1.0.pom 2/21 KB 3/21 KB 5/21 KB 6/21 KB 7/21 KB 9/21 KB 10/21 KB 11/21 KB 13/21 KB 14/21 KB 15/21 KB 17/21 KB 18/21 KB 19/21 KB 21/21 KB 21/21 KB Downloaded: https://repo.maven.apache.org/maven2/fr/inria/gforge/spoon/spoon-pom/1.0/spoon-pom-1.0.pom (21 KB at 89.1 KB/sec) Downloading: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/spoon-core-8.1.0-20200318.234144-196.jar [WARNING] Could not apply configuration for gforge.inria.fr-snapshot to wagon org.apache.maven.wagon.providers.http.HttpWagon:Cannot find 'preferredAuthentications' in class org.apache.maven.wagon.providers.http.HttpWagon 4/1732 KB 8/1732 KB 12/1732 KB 16/1732 KB 20/1732 KB 24/1732 KB 28/1732 KB 32/1732 KB 36/1732 KB 39/1732 KB 43/1732 KB 47/1732 KB 51/1732 KB 55/1732 KB 59/1732 KB 63/1732 KB 67/1732 KB 71/1732 KB 75/1732 KB 79/1732 KB 83/1732 KB 87/1732 KB 91/1732 KB 95/1732 KB 99/1732 KB 103/1732 KB 107/1732 KB 111/1732 KB 115/1732 KB 119/1732 KB 123/1732 KB 127/1732 KB 131/1732 KB 135/1732 KB 139/1732 KB 143/1732 KB 147/1732 KB 151/1732 KB 155/1732 KB 159/1732 KB 163/1732 KB 167/1732 KB 171/1732 KB 175/1732 KB 179/1732 KB 183/1732 KB 187/1732 KB 191/1732 KB 195/1732 KB 199/1732 KB 203/1732 KB 207/1732 KB 211/1732 KB 215/1732 KB 219/1732 KB 223/1732 KB 227/1732 KB 231/1732 KB 235/1732 KB 239/1732 KB 243/1732 KB 247/1732 KB 251/1732 KB 255/1732 KB 259/1732 KB 263/1732 KB 267/1732 KB 271/1732 KB 275/1732 KB 279/1732 KB 283/1732 KB 287/1732 KB 291/1732 KB 295/1732 KB 299/1732 KB 303/1732 KB 307/1732 KB 311/1732 KB 315/1732 KB 319/1732 KB 323/1732 KB 327/1732 KB 331/1732 KB 335/1732 KB 339/1732 KB 343/1732 KB 347/1732 KB 351/1732 KB 355/1732 KB 359/1732 KB 363/1732 KB 367/1732 KB 371/1732 KB 375/1732 KB 379/1732 KB 383/1732 KB 387/1732 KB 391/1732 KB 395/1732 KB 399/1732 KB 403/1732 KB 407/1732 KB 411/1732 KB 415/1732 KB 419/1732 KB 423/1732 KB 427/1732 KB 431/1732 KB 435/1732 KB 439/1732 KB 443/1732 KB 447/1732 KB 451/1732 KB 455/1732 KB 459/1732 KB 463/1732 KB 467/1732 KB 471/1732 KB 475/1732 KB 479/1732 KB 483/1732 KB 487/1732 KB 491/1732 KB 495/1732 KB 499/1732 KB 503/1732 KB 507/1732 KB 511/1732 KB 515/1732 KB 519/1732 KB 523/1732 KB 527/1732 KB 531/1732 KB 535/1732 KB 539/1732 KB 543/1732 KB 547/1732 KB 551/1732 KB 555/1732 KB 559/1732 KB 563/1732 KB 567/1732 KB 571/1732 KB 575/1732 KB 579/1732 KB 583/1732 KB 587/1732 KB 591/1732 KB 595/1732 KB 599/1732 KB 603/1732 KB 607/1732 KB 611/1732 KB 615/1732 KB 619/1732 KB 623/1732 KB 627/1732 KB 631/1732 KB 635/1732 KB 639/1732 KB 643/1732 KB 647/1732 KB 651/1732 KB 655/1732 KB 659/1732 KB 663/1732 KB 667/1732 KB 671/1732 KB 675/1732 KB 679/1732 KB 683/1732 KB 687/1732 KB 691/1732 KB 695/1732 KB 699/1732 KB 703/1732 KB 707/1732 KB 711/1732 KB 715/1732 KB 719/1732 KB 723/1732 KB 727/1732 KB 731/1732 KB 735/1732 KB 739/1732 KB 743/1732 KB 747/1732 KB 751/1732 KB 755/1732 KB 759/1732 KB 763/1732 KB 767/1732 KB 771/1732 KB 775/1732 KB 779/1732 KB 783/1732 KB 787/1732 KB 791/1732 KB 795/1732 KB 799/1732 KB 803/1732 KB 807/1732 KB 811/1732 KB 815/1732 KB 819/1732 KB 823/1732 KB 827/1732 KB 831/1732 KB 835/1732 KB 839/1732 KB 843/1732 KB 847/1732 KB 851/1732 KB 855/1732 KB 859/1732 KB 863/1732 KB 867/1732 KB 871/1732 KB 875/1732 KB 879/1732 KB 883/1732 KB 887/1732 KB 891/1732 KB 895/1732 KB 899/1732 KB 903/1732 KB 907/1732 KB 911/1732 KB 915/1732 KB 919/1732 KB 923/1732 KB 927/1732 KB 931/1732 KB 935/1732 KB 939/1732 KB 943/1732 KB 947/1732 KB 951/1732 KB 955/1732 KB 959/1732 KB 963/1732 KB 967/1732 KB 971/1732 KB 975/1732 KB 979/1732 KB 983/1732 KB 987/1732 KB 991/1732 KB 995/1732 KB 999/1732 KB 1003/1732 KB 1007/1732 KB 1011/1732 KB 1015/1732 KB 1019/1732 KB 1023/1732 KB 1027/1732 KB 1031/1732 KB 1035/1732 KB 1039/1732 KB 1043/1732 KB 1047/1732 KB 1051/1732 KB 1055/1732 KB 1059/1732 KB 1063/1732 KB 1067/1732 KB 1071/1732 KB 1075/1732 KB 1079/1732 KB 1083/1732 KB 1087/1732 KB 1091/1732 KB 1095/1732 KB 1099/1732 KB 1103/1732 KB 1107/1732 KB 1111/1732 KB 1115/1732 KB 1119/1732 KB 1123/1732 KB 1127/1732 KB 1131/1732 KB 1135/1732 KB 1139/1732 KB 1143/1732 KB 1147/1732 KB 1151/1732 KB 1155/1732 KB 1159/1732 KB 1163/1732 KB 1167/1732 KB 1171/1732 KB 1175/1732 KB 1179/1732 KB 1183/1732 KB 1187/1732 KB 1191/1732 KB 1195/1732 KB 1199/1732 KB 1203/1732 KB 1207/1732 KB 1211/1732 KB 1215/1732 KB 1219/1732 KB 1223/1732 KB 1227/1732 KB 1231/1732 KB 1235/1732 KB 1239/1732 KB 1243/1732 KB 1247/1732 KB 1251/1732 KB 1255/1732 KB 1259/1732 KB 1263/1732 KB 1267/1732 KB 1271/1732 KB 1275/1732 KB 1279/1732 KB 1283/1732 KB 1287/1732 KB 1291/1732 KB 1295/1732 KB 1299/1732 KB 1303/1732 KB 1307/1732 KB 1311/1732 KB 1315/1732 KB 1319/1732 KB 1323/1732 KB 1327/1732 KB 1331/1732 KB 1335/1732 KB 1339/1732 KB 1343/1732 KB 1347/1732 KB 1351/1732 KB 1355/1732 KB 1359/1732 KB 1363/1732 KB 1367/1732 KB 1371/1732 KB 1375/1732 KB 1379/1732 KB 1383/1732 KB 1387/1732 KB 1391/1732 KB 1395/1732 KB 1399/1732 KB 1403/1732 KB 1407/1732 KB 1411/1732 KB 1415/1732 KB 1419/1732 KB 1423/1732 KB 1427/1732 KB 1431/1732 KB 1435/1732 KB 1439/1732 KB 1443/1732 KB 1447/1732 KB 1451/1732 KB 1455/1732 KB 1459/1732 KB 1463/1732 KB 1467/1732 KB 1471/1732 KB 1475/1732 KB 1479/1732 KB 1483/1732 KB 1487/1732 KB 1491/1732 KB 1495/1732 KB 1499/1732 KB 1503/1732 KB 1507/1732 KB 1511/1732 KB 1515/1732 KB 1519/1732 KB 1523/1732 KB 1527/1732 KB 1531/1732 KB 1535/1732 KB 1539/1732 KB 1543/1732 KB 1547/1732 KB 1551/1732 KB 1555/1732 KB 1559/1732 KB 1563/1732 KB 1567/1732 KB 1571/1732 KB 1575/1732 KB 1579/1732 KB 1583/1732 KB 1587/1732 KB 1591/1732 KB 1595/1732 KB 1599/1732 KB 1603/1732 KB 1607/1732 KB 1611/1732 KB 1615/1732 KB 1619/1732 KB 1623/1732 KB 1627/1732 KB 1631/1732 KB 1635/1732 KB 1639/1732 KB 1643/1732 KB 1647/1732 KB 1651/1732 KB 1655/1732 KB 1659/1732 KB 1663/1732 KB 1667/1732 KB 1671/1732 KB 1675/1732 KB 1679/1732 KB 1683/1732 KB 1687/1732 KB 1691/1732 KB 1695/1732 KB 1699/1732 KB 1703/1732 KB 1707/1732 KB 1711/1732 KB 1715/1732 KB 1719/1732 KB 1723/1732 KB 1727/1732 KB 1731/1732 KB 1732/1732 KB Downloaded: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/spoon-core-8.1.0-20200318.234144-196.jar (1732 KB at 4532.4 KB/sec) [INFO] [INFO] --- jacoco-maven-plugin:0.7.5.201505241946:prepare-agent (default) @ npefix --- [INFO] argLine set to -javaagent:/builds/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/builds/workspace/npefix/target/jacoco.exec [INFO] [INFO] --- build-helper-maven-plugin:1.7:add-source (add-source) @ npefix --- [INFO] Source directory: /builds/workspace/npefix/src/evaluation/java added. [INFO] Source directory: /builds/workspace/npefix/src/main/java added. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ npefix --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ npefix --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 185 source files to /builds/workspace/npefix/target/classes [INFO] /builds/workspace/npefix/src/main/java/fr/inria/spirals/npefix/main/all/Launcher.java: Some input files use or override a deprecated API. [INFO] /builds/workspace/npefix/src/main/java/fr/inria/spirals/npefix/main/all/Launcher.java: Recompile with -Xlint:deprecation for details. [INFO] /builds/workspace/npefix/src/main/java/fr/inria/spirals/npefix/transformer/processors/ProcessorUtility.java: Some input files use unchecked or unsafe operations. [INFO] /builds/workspace/npefix/src/main/java/fr/inria/spirals/npefix/transformer/processors/ProcessorUtility.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ npefix --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 9 resources [INFO] [INFO] --- maven-compiler-plugin:3.5.1:testCompile (default-testCompile) @ npefix --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 17 source files to /builds/workspace/npefix/target/test-classes [INFO] /builds/workspace/npefix/src/test/java/fr/inria/spirals/npefix/patch/PatchesGeneratorTest.java: Some input files use unchecked or unsafe operations. [INFO] /builds/workspace/npefix/src/test/java/fr/inria/spirals/npefix/patch/PatchesGeneratorTest.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-surefire-plugin:2.17:test (default-test) @ npefix --- [INFO] Surefire report directory: /builds/workspace/npefix/target/surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8 Running fr.inria.spirals.npefix.transformer.processors.ConstructorEncapsulationTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). ConstructorEncapsulation # Constructor: 2 in 38ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.056 sec - in fr.inria.spirals.npefix.transformer.processors.ConstructorEncapsulationTest Running fr.inria.spirals.npefix.transformer.processors.ArrayAccessTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.829 sec - in fr.inria.spirals.npefix.transformer.processors.ArrayAccessTest Running fr.inria.spirals.npefix.transformer.processors.BeforeDerefAdderTest Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.009 sec - in fr.inria.spirals.npefix.transformer.processors.BeforeDerefAdderTest Running fr.inria.spirals.npefix.transformer.processors.TernarySplitterTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). TernarySplitter in 9ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.205 sec - in fr.inria.spirals.npefix.transformer.processors.TernarySplitterTest Running fr.inria.spirals.npefix.transformer.processors.ImplicitCastCheckerTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). AddImplicitCastChecker --> 4 in 7ms BeforeDeref --> 31 (failed:0) in 25ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.511 sec - in fr.inria.spirals.npefix.transformer.processors.ImplicitCastCheckerTest Running fr.inria.spirals.npefix.transformer.processors.CheckNotNullTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). java.lang.String local = (field == null) ? "" : field return field == null ? "" : field field = (parm == null) ? "" : parm java.lang.Class type = (array != null) ? array.getClass() : element != null ? element.getClass() : java.lang.Object.class java.lang.Class type = (array != null) ? array.getClass() : element != null ? element.getClass() : java.lang.Object.class CheckNotNull in 39ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.322 sec - in fr.inria.spirals.npefix.transformer.processors.CheckNotNullTest Running fr.inria.spirals.npefix.transformer.processors.TargetModifierTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). target--> 29 (failed:0) in 48ms public void multiCatch() { try { } catch (java.lang.IllegalArgumentException | java.lang.NullPointerException e) { e.printStackTrace(); } } Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.273 sec - in fr.inria.spirals.npefix.transformer.processors.TargetModifierTest Running fr.inria.spirals.npefix.transformer.TryCatchRepairModelTest /builds/workspace/npefix/target/test-classes/foo/src RMI Selector (Host: 127.0.0.1, Port: 10000): KO [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). CheckNotNull in 0ms ForceNullInit in 0ms AddImplicitCastChecker --> 0 in 1ms Assign --> 0 (failed: 0) in 1ms VarInit --> 0 in 1ms TryCatchRepair # Method: 4 in 14ms ConstructorTryCatchRepair # Constructor: 0 in 1ms VariableFor in 0ms ConeflowerTest#test1 1 Strat4 NULL Coneflower:15 Used null Status: Ko ConeflowerTest#test2 1 Strat4 NULL Coneflower:11 Used null Status: Ko ConeflowerTest#test3 1 Strat4 NULL Coneflower:7 Used null Status: Ko Multirun 4/1500 0% ConeflowerTest#test1 1 Strat4 NULL Coneflower:11 Used null Status: Ko ConeflowerTest#test2 1 Strat4 NULL Coneflower:7 Used null Status: Ko Multirun 8/1500 0% ConeflowerTest#test1 1 Strat4 NULL Coneflower:7 Used null Status: Ko Multirun 12/1500 0% ConeflowerTest#testThrowException 1 Strat4 VAR Coneflower:19 Used i Status: Ok Multirun 4/1500 0% ConeflowerTest#test1 1 Strat4 NEW Coneflower:15 Used java.lang.String() Status: Ko ConeflowerTest#test2 1 Strat4 NEW Coneflower:11 Used java.lang.String() Status: Ko ConeflowerTest#test3 1 Strat4 NEW Coneflower:7 Used java.lang.String() Status: Ok ConeflowerTest#testThrowException 1 Strat4 NEW Coneflower:19 Used 0 Status: Ok Multirun 4/1500 0% ConeflowerTest#test1 1 Strat4 NEW Coneflower:11 Used java.lang.String() Status: Ko ConeflowerTest#test2 1 Strat4 NEW Coneflower:7 Used java.lang.String() Status: Ok ConeflowerTest#testThrowException 1 Strat4 NEW Coneflower:19 Used -1 Status: Ko Multirun 8/1500 0% ConeflowerTest#test1 1 Strat4 NEW Coneflower:7 Used java.lang.String() Status: Ok ConeflowerTest#testThrowException 1 Strat4 NEW Coneflower:19 Used 1 Status: Ko Multirun 12/1500 0% Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.044 sec - in fr.inria.spirals.npefix.transformer.TryCatchRepairModelTest Running fr.inria.spirals.npefix.patchTemplate.ReplaceGlobalTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec - in fr.inria.spirals.npefix.patchTemplate.ReplaceGlobalTest Running fr.inria.spirals.npefix.patchTemplate.VariableFinderTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.2 sec - in fr.inria.spirals.npefix.patchTemplate.VariableFinderTest Running fr.inria.spirals.npefix.patchTemplate.SkipLineTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.249 sec - in fr.inria.spirals.npefix.patchTemplate.SkipLineTest Running fr.inria.spirals.npefix.patchTemplate.SkipMethodReturnTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.424 sec - in fr.inria.spirals.npefix.patchTemplate.SkipMethodReturnTest Running fr.inria.spirals.npefix.patchTemplate.ReplaceLocalTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.38 sec - in fr.inria.spirals.npefix.patchTemplate.ReplaceLocalTest Running fr.inria.spirals.npefix.patch.PatchesGeneratorTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -105,3 +105,7 @@ public void multiDecisionLine() { - Arrays.asList(field.toString(), field.toString()); + if (field == null) { + Arrays.asList( new String().toString(), new String().toString()); + } else { + Arrays.asList(field.toString(), field.toString()); + } } [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,6 +20,8 @@ String result = ""; - for (String element : array) { - result += element.toString(); - if(element == null) { - return null; + if (array != null) { + for (String element : array) { + result += element.toString(); + if(element == null) { + return null; + } } [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/src/main/java/Foo.java +++ b/src/main/java/Foo.java @@ -20,2 +20,5 @@ String result = ""; + if (array == null) { + return new Object(); + } for (String element : array) { [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -111,4 +111,12 @@ - } else if (array[0].isEmpty()) { - + } else { + if (array[0] == null) { + if ( new String().isEmpty()) { + + } + } else { + if (array[0].isEmpty()) { + + } + } } [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,2 +20,5 @@ String result = ""; + if (array == null) { + return new Object(); + } for (String element : array) { [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,2 +20,5 @@ String result = ""; + if (array == null) { + return result; + } for (String element : array) { @@ -30,3 +33,5 @@ public String fooLocal() { - System.out.print(field.toLowerCase()); + if (field != null) { + System.out.print(field.toLowerCase()); + } if(field == null) { [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,7 +20,16 @@ String result = ""; - for (String element : array) { - result += element.toString(); - if(element == null) { - return null; + if (array == null) { + for (String element : result) { + result += element.toString(); + if(element == null) { + return null; + } } + } else { + for (String element : array) { + result += element.toString(); + if(element == null) { + return null; + } + } } [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,7 +20,16 @@ String result = ""; - for (String element : array) { - result += element.toString(); - if(element == null) { - return null; + if (array == null) { + for (String element : new String[0]) { + result += element.toString(); + if(element == null) { + return null; + } } + } else { + for (String element : array) { + result += element.toString(); + if(element == null) { + return null; + } + } } [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). --- a/target/test-classes/foo/src/main/java/Foo.java +++ b/target/test-classes/foo/src/main/java/Foo.java @@ -20,2 +20,5 @@ String result = ""; + if (array == null) { + array = new String[0]; + } for (String element : array) { Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.097 sec - in fr.inria.spirals.npefix.patch.PatchesGeneratorTest Running fr.inria.spirals.npefix.main.all.LauncherTest [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). TernarySplitter in 4ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 12ms ForceNullInit in 1ms AddImplicitCastChecker --> 4 in 3ms BeforeDeref --> 29 (failed:0) in 11ms target--> 32 (failed:0) in 26ms TryRegister # Try: 1 in 13ms Assign --> 19 (failed: 0) in 22ms VarInit --> 10 in 6ms MethodEncapsulation # Method: 28 in 61ms ConstructorEncapsulation # Constructor: 2 in 11ms VariableFor in 5ms NoStrat FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test <No Strat> Status: Ko FooClassTest#fooLocalTest <No Strat> Status: Ko FooClassTest#fooGlobalTest <No Strat> Status: Ko FooClassTest#fooVariableLocalTest <No Strat> Status: Ko FooClassTest#fooVariableGlobalTest <No Strat> Status: Ko FooClassTest#returnVoidTest <No Strat> Status: Ko Strat1A FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test 1 Strat1A Foo:21 result Status: Ko FooClassTest#fooLocalTest <No Strat> Status: Ko FooClassTest#fooGlobalTest <No Strat> Status: Ko FooClassTest#fooVariableLocalTest 1 Strat1A Foo:49 Used empty Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat1A Foo:58 Used empty Status: Ok FooClassTest#returnVoidTest <No Strat> Status: Ko Strat1B FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test 1 Strat1B Foo:21 result Status: Ko FooClassTest#fooLocalTest <No Strat> Status: Ko FooClassTest#fooGlobalTest <No Strat> Status: Ko FooClassTest#fooVariableLocalTest 1 Strat1B Foo:49 Used empty Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat1B Foo:58 Used empty Status: Ok FooClassTest#returnVoidTest <No Strat> Status: Ko Strat2A FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest 1 Strat2A Foo:16 Used java.lang.String() Status: Ok FooClassTest#foo1Test 1 Strat2A Foo:21 java.lang.Object() Status: Ko FooClassTest#fooLocalTest 1 Strat2A Foo:31 Used java.lang.String() Status: Ok FooClassTest#fooGlobalTest 1 Strat2A Foo:31 Used java.lang.String() Status: Ko FooClassTest#fooVariableLocalTest 1 Strat2A Foo:49 Used java.lang.String() Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat2A Foo:58 Used java.lang.String() Status: Ko FooClassTest#returnVoidTest 1 Strat2A Foo:67 Used java.lang.String() Status: Ok Strat2B FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest 1 Strat2B Foo:16 Used java.lang.String() Status: Ok FooClassTest#foo1Test 1 Strat2B Foo:21 java.lang.Object() Status: Ko FooClassTest#fooLocalTest 1 Strat2B Foo:31 Used java.lang.String() Status: Ko FooClassTest#fooGlobalTest 1 Strat2B Foo:31 Used java.lang.String() Status: Ok FooClassTest#fooVariableLocalTest 1 Strat2B Foo:49 Used java.lang.String() Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat2B Foo:58 Used java.lang.String() Status: Ko FooClassTest#returnVoidTest 1 Strat2B Foo:67 Used java.lang.String() Status: Ok Strat3 FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest 1 Strat3 Foo:16 Used false Status: Ok FooClassTest#foo1Test 1 Strat3 Foo:21 Used false Status: Ok FooClassTest#fooLocalTest 1 Strat3 Foo:31 Used false Status: Ok FooClassTest#fooGlobalTest 1 Strat3 Foo:31 Used false Status: Ko FooClassTest#fooVariableLocalTest 1 Strat3 Foo:49 Used false Status: Ok FooClassTest#fooVariableGlobalTest 1 Strat3 Foo:58 Used false Status: Ko FooClassTest#returnVoidTest 1 Strat3 Foo:67 Used false Status: Ok Strat4 NULL FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test 1 Strat4 NULL Foo:21 Used null Status: Ok FooClassTest#fooLocalTest 1 Strat4 NULL Foo:31 Used null Status: Ko FooClassTest#fooGlobalTest 1 Strat4 NULL Foo:31 Used null Status: Ko FooClassTest#fooVariableLocalTest 1 Strat4 NULL Foo:49 Used null Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat4 NULL Foo:58 Used null Status: Ko FooClassTest#returnVoidTest <No Strat> Status: Ko Strat4 VAR FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test 1 Strat4 VAR Foo:21 Used result Status: Ok FooClassTest#fooLocalTest <No Strat> Status: Ko FooClassTest#fooGlobalTest <No Strat> Status: Ko FooClassTest#fooVariableLocalTest 1 Strat4 VAR Foo:49 Used empty Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat4 VAR Foo:58 Used empty Status: Ko FooClassTest#returnVoidTest <No Strat> Status: Ko Strat4 NEW FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest <No Strat> Status: Ko FooClassTest#foo1Test 1 Strat4 NEW Foo:21 Used java.lang.Object() Status: Ok FooClassTest#fooLocalTest 1 Strat4 NEW Foo:31 Used java.lang.String() Status: Ko FooClassTest#fooGlobalTest 1 Strat4 NEW Foo:31 Used java.lang.String() Status: Ok FooClassTest#fooVariableLocalTest 1 Strat4 NEW Foo:49 Used java.lang.String() Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat4 NEW Foo:58 Used java.lang.String() Status: Ko FooClassTest#returnVoidTest <No Strat> Status: Ko Strat4 VOID FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest 1 Strat4 VOID Foo:16 Used null Status: Ok FooClassTest#foo1Test <No Strat> Status: Ko FooClassTest#fooLocalTest <No Strat> Status: Ko FooClassTest#fooGlobalTest <No Strat> Status: Ko FooClassTest#fooVariableLocalTest <No Strat> Status: Ko FooClassTest#fooVariableGlobalTest <No Strat> Status: Ko FooClassTest#returnVoidTest 1 Strat4 VOID Foo:67 Used null Status: Ok [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). TernarySplitter in 4ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 9ms ForceNullInit in 1ms AddImplicitCastChecker --> 4 in 2ms BeforeDeref --> 29 (failed:0) in 10ms target--> 32 (failed:0) in 25ms TryRegister # Try: 1 in 6ms Assign --> 19 (failed: 0) in 17ms VarInit --> 10 in 5ms MethodEncapsulation # Method: 52 in 62ms ConstructorEncapsulation # Constructor: 2 in 6ms VariableFor in 2ms ArrayReadReturnNull FooArrayAccessTest#fooTest <No Strat> Status: Ko FooArrayAccessTest#fooTest2 <No Strat> Status: Ko FooArrayAccessTest#fooTest1 <No Strat> Status: Ko FooClassTest#fooTest 1 ArrayReadReturnNull Foo:16 null Status: Ko FooClassTest#foo1Test 1 ArrayReadReturnNull Foo:21 null Status: Ko FooClassTest#fooLocalTest 1 ArrayReadReturnNull Foo:31 null Status: Ko FooClassTest#fooGlobalTest 1 ArrayReadReturnNull Foo:31 null Status: Ko FooClassTest#fooVariableLocalTest 1 ArrayReadReturnNull Foo:49 null Status: Ko FooClassTest#fooVariableGlobalTest 1 ArrayReadReturnNull Foo:58 null Status: Ko FooClassTest#returnVoidTest 1 ArrayReadReturnNull Foo:67 null Status: Ko [main] INFO spoon.Launcher - Running in NOCLASSPATH mode (doc: http://spoon.gforge.inria.fr/launcher.html). TernarySplitter in 5ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 16ms ForceNullInit in 2ms AddImplicitCastChecker --> 4 in 3ms BeforeDeref --> 29 (failed:0) in 11ms target--> 32 (failed:0) in 23ms TryRegister # Try: 1 in 7ms Assign --> 19 (failed: 0) in 17ms VarInit --> 10 in 7ms MethodEncapsulation # Method: 76 in 92ms ConstructorEncapsulation # Constructor: 2 in 11ms VariableFor in 5ms Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.035 sec - in fr.inria.spirals.npefix.main.all.LauncherTest Results : Tests run: 29, Failures: 0, Errors: 0, Skipped: 2 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.541 s [INFO] Finished at: 2020-03-19T05:24:33+01:00 [INFO] Final Memory: 29M/214M [INFO] ------------------------------------------------------------------------ Finished: SUCCESS