Console Output
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/jenkins5858019112894059334.sh
+ rm -rf /builds/.m2/repository/fr/inria/gforge/spoon
[npefix] $ /bin/sh -xe /tmp/jenkins3805225338038494663.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.537 s
[INFO] Finished at: 2020-03-16T05:24:09+01:00
[INFO] Final Memory: 23M/187M
[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 8.0 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-20200315.234143-193.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-20200315.234143-193.pom (8 KB at 208.0 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 106.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-20200315.234143-193.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
13/1732 KB
17/1732 KB
20/1732 KB
24/1732 KB
26/1732 KB
30/1732 KB
34/1732 KB
38/1732 KB
42/1732 KB
43/1732 KB
47/1732 KB
50/1732 KB
54/1732 KB
56/1732 KB
60/1732 KB
60/1732 KB
64/1732 KB
68/1732 KB
72/1732 KB
74/1732 KB
78/1732 KB
81/1732 KB
85/1732 KB
87/1732 KB
91/1732 KB
94/1732 KB
98/1732 KB
98/1732 KB
101/1732 KB
103/1732 KB
107/1732 KB
111/1732 KB
111/1732 KB
115/1732 KB
117/1732 KB
121/1732 KB
122/1732 KB
126/1732 KB
127/1732 KB
131/1732 KB
132/1732 KB
134/1732 KB
138/1732 KB
142/1732 KB
146/1732 KB
150/1732 KB
151/1732 KB
155/1732 KB
156/1732 KB
158/1732 KB
162/1732 KB
163/1732 KB
167/1732 KB
168/1732 KB
172/1732 KB
173/1732 KB
177/1732 KB
180/1732 KB
182/1732 KB
186/1732 KB
186/1732 KB
190/1732 KB
194/1732 KB
198/1732 KB
202/1732 KB
206/1732 KB
210/1732 KB
211/1732 KB
215/1732 KB
217/1732 KB
221/1732 KB
225/1732 KB
229/1732 KB
233/1732 KB
237/1732 KB
241/1732 KB
245/1732 KB
249/1732 KB
253/1732 KB
257/1732 KB
261/1732 KB
265/1732 KB
269/1732 KB
273/1732 KB
277/1732 KB
281/1732 KB
285/1732 KB
289/1732 KB
293/1732 KB
297/1732 KB
301/1732 KB
305/1732 KB
309/1732 KB
313/1732 KB
317/1732 KB
321/1732 KB
325/1732 KB
329/1732 KB
333/1732 KB
337/1732 KB
341/1732 KB
345/1732 KB
349/1732 KB
353/1732 KB
357/1732 KB
361/1732 KB
365/1732 KB
369/1732 KB
373/1732 KB
377/1732 KB
381/1732 KB
385/1732 KB
389/1732 KB
393/1732 KB
397/1732 KB
401/1732 KB
405/1732 KB
409/1732 KB
413/1732 KB
417/1732 KB
421/1732 KB
425/1732 KB
429/1732 KB
433/1732 KB
437/1732 KB
441/1732 KB
445/1732 KB
449/1732 KB
453/1732 KB
457/1732 KB
461/1732 KB
465/1732 KB
469/1732 KB
473/1732 KB
477/1732 KB
481/1732 KB
485/1732 KB
489/1732 KB
493/1732 KB
497/1732 KB
501/1732 KB
505/1732 KB
509/1732 KB
513/1732 KB
517/1732 KB
521/1732 KB
525/1732 KB
529/1732 KB
533/1732 KB
537/1732 KB
541/1732 KB
545/1732 KB
549/1732 KB
553/1732 KB
557/1732 KB
561/1732 KB
565/1732 KB
569/1732 KB
573/1732 KB
577/1732 KB
581/1732 KB
585/1732 KB
589/1732 KB
593/1732 KB
597/1732 KB
601/1732 KB
605/1732 KB
609/1732 KB
613/1732 KB
617/1732 KB
621/1732 KB
625/1732 KB
629/1732 KB
633/1732 KB
637/1732 KB
641/1732 KB
645/1732 KB
649/1732 KB
653/1732 KB
657/1732 KB
661/1732 KB
665/1732 KB
669/1732 KB
673/1732 KB
677/1732 KB
681/1732 KB
685/1732 KB
689/1732 KB
693/1732 KB
697/1732 KB
701/1732 KB
705/1732 KB
709/1732 KB
713/1732 KB
717/1732 KB
721/1732 KB
725/1732 KB
729/1732 KB
733/1732 KB
737/1732 KB
741/1732 KB
745/1732 KB
749/1732 KB
753/1732 KB
757/1732 KB
761/1732 KB
765/1732 KB
769/1732 KB
773/1732 KB
777/1732 KB
781/1732 KB
785/1732 KB
789/1732 KB
793/1732 KB
797/1732 KB
801/1732 KB
805/1732 KB
809/1732 KB
813/1732 KB
817/1732 KB
821/1732 KB
825/1732 KB
829/1732 KB
833/1732 KB
837/1732 KB
841/1732 KB
845/1732 KB
849/1732 KB
853/1732 KB
857/1732 KB
861/1732 KB
865/1732 KB
869/1732 KB
873/1732 KB
877/1732 KB
881/1732 KB
885/1732 KB
889/1732 KB
893/1732 KB
897/1732 KB
901/1732 KB
905/1732 KB
909/1732 KB
913/1732 KB
917/1732 KB
921/1732 KB
925/1732 KB
929/1732 KB
933/1732 KB
937/1732 KB
941/1732 KB
945/1732 KB
949/1732 KB
953/1732 KB
957/1732 KB
961/1732 KB
965/1732 KB
969/1732 KB
973/1732 KB
977/1732 KB
981/1732 KB
985/1732 KB
989/1732 KB
993/1732 KB
997/1732 KB
1001/1732 KB
1005/1732 KB
1009/1732 KB
1013/1732 KB
1017/1732 KB
1021/1732 KB
1025/1732 KB
1029/1732 KB
1033/1732 KB
1037/1732 KB
1041/1732 KB
1045/1732 KB
1049/1732 KB
1053/1732 KB
1057/1732 KB
1061/1732 KB
1065/1732 KB
1069/1732 KB
1073/1732 KB
1077/1732 KB
1081/1732 KB
1085/1732 KB
1089/1732 KB
1093/1732 KB
1097/1732 KB
1101/1732 KB
1105/1732 KB
1109/1732 KB
1113/1732 KB
1117/1732 KB
1121/1732 KB
1125/1732 KB
1129/1732 KB
1133/1732 KB
1137/1732 KB
1141/1732 KB
1145/1732 KB
1149/1732 KB
1153/1732 KB
1157/1732 KB
1161/1732 KB
1165/1732 KB
1169/1732 KB
1173/1732 KB
1177/1732 KB
1181/1732 KB
1185/1732 KB
1189/1732 KB
1193/1732 KB
1197/1732 KB
1201/1732 KB
1205/1732 KB
1209/1732 KB
1213/1732 KB
1217/1732 KB
1221/1732 KB
1225/1732 KB
1229/1732 KB
1233/1732 KB
1237/1732 KB
1241/1732 KB
1245/1732 KB
1249/1732 KB
1253/1732 KB
1257/1732 KB
1261/1732 KB
1265/1732 KB
1269/1732 KB
1273/1732 KB
1277/1732 KB
1281/1732 KB
1285/1732 KB
1289/1732 KB
1293/1732 KB
1297/1732 KB
1301/1732 KB
1305/1732 KB
1309/1732 KB
1313/1732 KB
1317/1732 KB
1321/1732 KB
1325/1732 KB
1329/1732 KB
1333/1732 KB
1337/1732 KB
1341/1732 KB
1345/1732 KB
1349/1732 KB
1353/1732 KB
1357/1732 KB
1361/1732 KB
1365/1732 KB
1369/1732 KB
1373/1732 KB
1377/1732 KB
1381/1732 KB
1385/1732 KB
1389/1732 KB
1393/1732 KB
1397/1732 KB
1401/1732 KB
1405/1732 KB
1409/1732 KB
1413/1732 KB
1417/1732 KB
1421/1732 KB
1425/1732 KB
1429/1732 KB
1433/1732 KB
1437/1732 KB
1441/1732 KB
1445/1732 KB
1449/1732 KB
1453/1732 KB
1457/1732 KB
1461/1732 KB
1465/1732 KB
1469/1732 KB
1473/1732 KB
1477/1732 KB
1481/1732 KB
1485/1732 KB
1489/1732 KB
1493/1732 KB
1497/1732 KB
1501/1732 KB
1505/1732 KB
1509/1732 KB
1513/1732 KB
1517/1732 KB
1521/1732 KB
1525/1732 KB
1529/1732 KB
1533/1732 KB
1537/1732 KB
1541/1732 KB
1545/1732 KB
1549/1732 KB
1553/1732 KB
1557/1732 KB
1561/1732 KB
1565/1732 KB
1569/1732 KB
1573/1732 KB
1577/1732 KB
1581/1732 KB
1585/1732 KB
1589/1732 KB
1593/1732 KB
1597/1732 KB
1601/1732 KB
1605/1732 KB
1609/1732 KB
1613/1732 KB
1617/1732 KB
1621/1732 KB
1625/1732 KB
1629/1732 KB
1633/1732 KB
1637/1732 KB
1641/1732 KB
1645/1732 KB
1649/1732 KB
1653/1732 KB
1657/1732 KB
1661/1732 KB
1665/1732 KB
1669/1732 KB
1673/1732 KB
1677/1732 KB
1681/1732 KB
1685/1732 KB
1689/1732 KB
1693/1732 KB
1697/1732 KB
1701/1732 KB
1705/1732 KB
1709/1732 KB
1713/1732 KB
1717/1732 KB
1721/1732 KB
1725/1732 KB
1729/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-20200315.234143-193.jar (1732 KB at 7184.1 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 44ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.471 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.746 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 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 15ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.357 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 26ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.506 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 55ms
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.301 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 47ms
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.274 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 1ms
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 1ms
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.015 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.365 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.092 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.212 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.292 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.294 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.362 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 14ms
type = (element != null) ? element.getClass() : Object.class
CheckNotNull in 35ms
ForceNullInit in 10ms
AddImplicitCastChecker --> 4 in 4ms
BeforeDeref --> 29 (failed:0) in 16ms
target--> 32 (failed:0) in 38ms
TryRegister # Try: 1 in 15ms
Assign --> 19 (failed: 0) in 30ms
VarInit --> 10 in 7ms
MethodEncapsulation # Method: 28 in 70ms
ConstructorEncapsulation # Constructor: 2 in 7ms
VariableFor in 5ms
NoStrat
FooArrayAccessTest#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
<No Strat> Status: Ko
FooClassTest#fooTest
<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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat1A Foo:21 result
Status: Ko
FooClassTest#fooTest
<No Strat> 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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat1B Foo:21 result
Status: Ko
FooClassTest#fooTest
<No Strat> 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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat2A Foo:21 java.lang.Object()
Status: Ko
FooClassTest#fooTest
1 Strat2A Foo:16 Used java.lang.String()
Status: Ok
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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat2B Foo:21 java.lang.Object()
Status: Ko
FooClassTest#fooTest
1 Strat2B Foo:16 Used java.lang.String()
Status: Ok
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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat3 Foo:21 Used false
Status: Ok
FooClassTest#fooTest
1 Strat3 Foo:16 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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat4 NULL Foo:21 Used null
Status: Ok
FooClassTest#fooTest
<No Strat> Status: Ko
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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat4 VAR Foo:21 Used result
Status: Ok
FooClassTest#fooTest
<No Strat> Status: Ko
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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 Strat4 NEW Foo:21 Used java.lang.Object()
Status: Ok
FooClassTest#fooTest
<No Strat> Status: Ko
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#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
<No Strat> Status: Ko
FooClassTest#fooTest
1 Strat4 VOID Foo:16 Used null
Status: Ok
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 10ms
ForceNullInit in 1ms
AddImplicitCastChecker --> 4 in 4ms
BeforeDeref --> 29 (failed:0) in 11ms
target--> 32 (failed:0) in 35ms
TryRegister # Try: 1 in 10ms
Assign --> 19 (failed: 0) in 19ms
VarInit --> 10 in 5ms
MethodEncapsulation # Method: 52 in 59ms
ConstructorEncapsulation # Constructor: 2 in 6ms
VariableFor in 4ms
ArrayReadReturnNull
FooArrayAccessTest#fooTest1
<No Strat> Status: Ko
FooArrayAccessTest#fooTest2
<No Strat> Status: Ko
FooArrayAccessTest#fooTest
<No Strat> Status: Ko
FooClassTest#foo1Test
1 ArrayReadReturnNull Foo:21 null
Status: Ko
FooClassTest#fooTest
1 ArrayReadReturnNull Foo:16 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 10ms
ForceNullInit in 1ms
AddImplicitCastChecker --> 4 in 3ms
BeforeDeref --> 29 (failed:0) in 9ms
target--> 32 (failed:0) in 35ms
TryRegister # Try: 1 in 6ms
Assign --> 19 (failed: 0) in 16ms
VarInit --> 10 in 8ms
MethodEncapsulation # Method: 76 in 49ms
ConstructorEncapsulation # Constructor: 2 in 6ms
VariableFor in 3ms
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.248 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.232 s
[INFO] Finished at: 2020-03-16T05:24:32+01:00
[INFO] Final Memory: 29M/216M
[INFO] ------------------------------------------------------------------------
Finished: SUCCESS