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/jenkins8185226929996032750.sh
+ rm -rf /builds/.m2/repository/fr/inria/gforge/spoon
[npefix] $ /bin/sh -xe /tmp/jenkins1385721737585910898.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.15
[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: 5.113 s
[INFO] Finished at: 2020-02-20T05:24:09+01:00
[INFO] Final Memory: 24M/192M
[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 7.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-20200219.234142-143.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-20200219.234142-143.pom (8 KB at 140.7 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 45.5 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-20200219.234142-143.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/1704 KB
8/1704 KB
12/1704 KB
13/1704 KB
17/1704 KB
21/1704 KB
25/1704 KB
29/1704 KB
33/1704 KB
37/1704 KB
41/1704 KB
42/1704 KB
46/1704 KB
50/1704 KB
54/1704 KB
57/1704 KB
61/1704 KB
63/1704 KB
64/1704 KB
68/1704 KB
71/1704 KB
73/1704 KB
77/1704 KB
78/1704 KB
80/1704 KB
84/1704 KB
84/1704 KB
88/1704 KB
92/1704 KB
96/1704 KB
98/1704 KB
101/1704 KB
105/1704 KB
108/1704 KB
112/1704 KB
115/1704 KB
119/1704 KB
121/1704 KB
125/1704 KB
129/1704 KB
131/1704 KB
135/1704 KB
136/1704 KB
138/1704 KB
142/1704 KB
144/1704 KB
148/1704 KB
149/1704 KB
153/1704 KB
156/1704 KB
160/1704 KB
163/1704 KB
167/1704 KB
169/1704 KB
170/1704 KB
172/1704 KB
176/1704 KB
179/1704 KB
183/1704 KB
183/1704 KB
187/1704 KB
191/1704 KB
195/1704 KB
199/1704 KB
203/1704 KB
203/1704 KB
207/1704 KB
211/1704 KB
215/1704 KB
219/1704 KB
223/1704 KB
227/1704 KB
231/1704 KB
235/1704 KB
235/1704 KB
239/1704 KB
240/1704 KB
244/1704 KB
248/1704 KB
252/1704 KB
256/1704 KB
260/1704 KB
264/1704 KB
268/1704 KB
272/1704 KB
276/1704 KB
280/1704 KB
284/1704 KB
288/1704 KB
292/1704 KB
296/1704 KB
300/1704 KB
304/1704 KB
308/1704 KB
312/1704 KB
316/1704 KB
320/1704 KB
324/1704 KB
328/1704 KB
332/1704 KB
336/1704 KB
340/1704 KB
344/1704 KB
348/1704 KB
352/1704 KB
356/1704 KB
360/1704 KB
364/1704 KB
368/1704 KB
372/1704 KB
376/1704 KB
380/1704 KB
384/1704 KB
388/1704 KB
392/1704 KB
396/1704 KB
400/1704 KB
404/1704 KB
408/1704 KB
408/1704 KB
412/1704 KB
415/1704 KB
419/1704 KB
423/1704 KB
427/1704 KB
431/1704 KB
435/1704 KB
439/1704 KB
443/1704 KB
447/1704 KB
451/1704 KB
455/1704 KB
459/1704 KB
463/1704 KB
467/1704 KB
471/1704 KB
475/1704 KB
479/1704 KB
483/1704 KB
487/1704 KB
491/1704 KB
495/1704 KB
499/1704 KB
503/1704 KB
507/1704 KB
511/1704 KB
515/1704 KB
519/1704 KB
523/1704 KB
527/1704 KB
531/1704 KB
535/1704 KB
539/1704 KB
543/1704 KB
547/1704 KB
551/1704 KB
555/1704 KB
559/1704 KB
563/1704 KB
567/1704 KB
571/1704 KB
575/1704 KB
579/1704 KB
583/1704 KB
587/1704 KB
591/1704 KB
595/1704 KB
599/1704 KB
603/1704 KB
607/1704 KB
611/1704 KB
615/1704 KB
619/1704 KB
623/1704 KB
627/1704 KB
631/1704 KB
635/1704 KB
639/1704 KB
643/1704 KB
647/1704 KB
651/1704 KB
655/1704 KB
659/1704 KB
663/1704 KB
667/1704 KB
671/1704 KB
675/1704 KB
679/1704 KB
683/1704 KB
687/1704 KB
691/1704 KB
695/1704 KB
699/1704 KB
703/1704 KB
707/1704 KB
711/1704 KB
715/1704 KB
719/1704 KB
723/1704 KB
727/1704 KB
731/1704 KB
735/1704 KB
739/1704 KB
743/1704 KB
747/1704 KB
751/1704 KB
755/1704 KB
759/1704 KB
763/1704 KB
767/1704 KB
771/1704 KB
775/1704 KB
779/1704 KB
783/1704 KB
787/1704 KB
791/1704 KB
795/1704 KB
799/1704 KB
803/1704 KB
807/1704 KB
811/1704 KB
815/1704 KB
819/1704 KB
823/1704 KB
827/1704 KB
831/1704 KB
835/1704 KB
839/1704 KB
843/1704 KB
847/1704 KB
851/1704 KB
855/1704 KB
859/1704 KB
863/1704 KB
867/1704 KB
871/1704 KB
875/1704 KB
879/1704 KB
883/1704 KB
887/1704 KB
891/1704 KB
895/1704 KB
899/1704 KB
903/1704 KB
907/1704 KB
911/1704 KB
915/1704 KB
919/1704 KB
923/1704 KB
927/1704 KB
931/1704 KB
935/1704 KB
939/1704 KB
943/1704 KB
947/1704 KB
951/1704 KB
955/1704 KB
959/1704 KB
963/1704 KB
967/1704 KB
971/1704 KB
975/1704 KB
979/1704 KB
983/1704 KB
987/1704 KB
991/1704 KB
995/1704 KB
999/1704 KB
1003/1704 KB
1007/1704 KB
1011/1704 KB
1015/1704 KB
1019/1704 KB
1023/1704 KB
1027/1704 KB
1031/1704 KB
1035/1704 KB
1039/1704 KB
1043/1704 KB
1047/1704 KB
1051/1704 KB
1055/1704 KB
1059/1704 KB
1063/1704 KB
1067/1704 KB
1071/1704 KB
1075/1704 KB
1079/1704 KB
1083/1704 KB
1087/1704 KB
1091/1704 KB
1095/1704 KB
1099/1704 KB
1103/1704 KB
1107/1704 KB
1111/1704 KB
1115/1704 KB
1119/1704 KB
1123/1704 KB
1127/1704 KB
1131/1704 KB
1135/1704 KB
1139/1704 KB
1143/1704 KB
1147/1704 KB
1151/1704 KB
1155/1704 KB
1159/1704 KB
1163/1704 KB
1167/1704 KB
1171/1704 KB
1175/1704 KB
1179/1704 KB
1183/1704 KB
1187/1704 KB
1191/1704 KB
1195/1704 KB
1199/1704 KB
1203/1704 KB
1207/1704 KB
1211/1704 KB
1215/1704 KB
1219/1704 KB
1223/1704 KB
1227/1704 KB
1231/1704 KB
1235/1704 KB
1239/1704 KB
1243/1704 KB
1247/1704 KB
1251/1704 KB
1255/1704 KB
1259/1704 KB
1263/1704 KB
1267/1704 KB
1271/1704 KB
1275/1704 KB
1279/1704 KB
1283/1704 KB
1287/1704 KB
1291/1704 KB
1295/1704 KB
1299/1704 KB
1303/1704 KB
1307/1704 KB
1311/1704 KB
1315/1704 KB
1319/1704 KB
1323/1704 KB
1327/1704 KB
1331/1704 KB
1335/1704 KB
1339/1704 KB
1343/1704 KB
1347/1704 KB
1351/1704 KB
1355/1704 KB
1359/1704 KB
1363/1704 KB
1367/1704 KB
1371/1704 KB
1375/1704 KB
1379/1704 KB
1383/1704 KB
1387/1704 KB
1391/1704 KB
1395/1704 KB
1399/1704 KB
1403/1704 KB
1407/1704 KB
1411/1704 KB
1415/1704 KB
1419/1704 KB
1423/1704 KB
1427/1704 KB
1431/1704 KB
1435/1704 KB
1439/1704 KB
1443/1704 KB
1447/1704 KB
1451/1704 KB
1455/1704 KB
1459/1704 KB
1463/1704 KB
1467/1704 KB
1471/1704 KB
1475/1704 KB
1479/1704 KB
1483/1704 KB
1487/1704 KB
1491/1704 KB
1495/1704 KB
1499/1704 KB
1503/1704 KB
1507/1704 KB
1511/1704 KB
1515/1704 KB
1519/1704 KB
1523/1704 KB
1527/1704 KB
1531/1704 KB
1535/1704 KB
1539/1704 KB
1543/1704 KB
1547/1704 KB
1551/1704 KB
1555/1704 KB
1559/1704 KB
1563/1704 KB
1567/1704 KB
1571/1704 KB
1575/1704 KB
1579/1704 KB
1583/1704 KB
1587/1704 KB
1591/1704 KB
1595/1704 KB
1599/1704 KB
1603/1704 KB
1607/1704 KB
1611/1704 KB
1615/1704 KB
1619/1704 KB
1623/1704 KB
1627/1704 KB
1631/1704 KB
1635/1704 KB
1639/1704 KB
1643/1704 KB
1647/1704 KB
1651/1704 KB
1655/1704 KB
1659/1704 KB
1663/1704 KB
1667/1704 KB
1671/1704 KB
1675/1704 KB
1679/1704 KB
1683/1704 KB
1687/1704 KB
1691/1704 KB
1695/1704 KB
1699/1704 KB
1703/1704 KB
1704/1704 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-20200219.234142-143.jar (1704 KB at 5641.3 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 27ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.922 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.738 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.001 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 8ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.261 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 6ms
BeforeDeref --> 31 (failed:0) in 24ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.502 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 23ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.189 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 45ms
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.287 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 0ms
Assign --> 0 (failed: 0) in 1ms
VarInit --> 0 in 0ms
TryCatchRepair # Method: 4 in 13ms
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.108 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.332 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.097 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.183 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.377 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.33 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.371 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 6ms
type = (element != null) ? element.getClass() : Object.class
CheckNotNull in 15ms
ForceNullInit in 5ms
AddImplicitCastChecker --> 4 in 5ms
BeforeDeref --> 29 (failed:0) in 21ms
target--> 32 (failed:0) in 42ms
TryRegister # Try: 1 in 17ms
Assign --> 19 (failed: 0) in 31ms
VarInit --> 10 in 8ms
MethodEncapsulation # Method: 28 in 119ms
ConstructorEncapsulation # Constructor: 2 in 17ms
VariableFor in 8ms
NoStrat
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooArrayAccessTest#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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 23ms
TryRegister # Try: 1 in 5ms
Assign --> 19 (failed: 0) in 16ms
VarInit --> 10 in 5ms
MethodEncapsulation # Method: 52 in 47ms
ConstructorEncapsulation # Constructor: 2 in 7ms
VariableFor in 3ms
ArrayReadReturnNull
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooArrayAccessTest#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<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 4ms
type = (element != null) ? element.getClass() : Object.class
CheckNotNull in 11ms
ForceNullInit in 1ms
AddImplicitCastChecker --> 4 in 3ms
BeforeDeref --> 29 (failed:0) in 12ms
target--> 32 (failed:0) in 24ms
TryRegister # Try: 1 in 6ms
Assign --> 19 (failed: 0) in 17ms
VarInit --> 10 in 5ms
MethodEncapsulation # Method: 76 in 77ms
ConstructorEncapsulation # Constructor: 2 in 6ms
VariableFor in 3ms
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.171 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: 20.413 s
[INFO] Finished at: 2020-02-20T05:24:31+01:00
[INFO] Final Memory: 29M/218M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS