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/* > 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/* > 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 Commit message: "Update README.md" > git rev-list --no-walk 8d7b6ba9358d6f6c08f44dd80e49c5c3f733b7fe # timeout=10 [npefix] $ /bin/sh -xe /tmp/jenkins4831783632874559305.sh + rm -rf /builds/.m2/repository/fr/inria/gforge/spoon [npefix] $ /bin/sh -xe /tmp/jenkins3071938391889229136.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: 4.213 s [INFO] Finished at: 2020-01-27T05:24:08+01:00 [INFO] Final Memory: 24M/190M [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 1013/1013 B Downloaded: http://maven.inria.fr/artifactory/spoon-public-snapshot/fr/inria/gforge/spoon/spoon-core/8.1.0-SNAPSHOT/maven-metadata.xml (1013 B at 7.7 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-20200126.234139-97.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 3/8 KB 7/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-20200126.234139-97.pom (8 KB at 165.9 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 130.6 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-20200126.234139-97.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/1698 KB 8/1698 KB 12/1698 KB 13/1698 KB 17/1698 KB 21/1698 KB 25/1698 KB 29/1698 KB 33/1698 KB 37/1698 KB 41/1698 KB 42/1698 KB 46/1698 KB 50/1698 KB 54/1698 KB 58/1698 KB 62/1698 KB 66/1698 KB 70/1698 KB 74/1698 KB 78/1698 KB 82/1698 KB 86/1698 KB 90/1698 KB 94/1698 KB 98/1698 KB 101/1698 KB 105/1698 KB 109/1698 KB 113/1698 KB 117/1698 KB 121/1698 KB 125/1698 KB 129/1698 KB 133/1698 KB 137/1698 KB 141/1698 KB 145/1698 KB 149/1698 KB 153/1698 KB 157/1698 KB 161/1698 KB 165/1698 KB 169/1698 KB 173/1698 KB 177/1698 KB 181/1698 KB 185/1698 KB 189/1698 KB 193/1698 KB 197/1698 KB 201/1698 KB 205/1698 KB 209/1698 KB 213/1698 KB 217/1698 KB 221/1698 KB 225/1698 KB 229/1698 KB 233/1698 KB 237/1698 KB 241/1698 KB 245/1698 KB 249/1698 KB 253/1698 KB 257/1698 KB 261/1698 KB 265/1698 KB 269/1698 KB 273/1698 KB 277/1698 KB 281/1698 KB 285/1698 KB 289/1698 KB 293/1698 KB 297/1698 KB 301/1698 KB 305/1698 KB 309/1698 KB 313/1698 KB 317/1698 KB 321/1698 KB 325/1698 KB 329/1698 KB 333/1698 KB 337/1698 KB 341/1698 KB 345/1698 KB 349/1698 KB 353/1698 KB 357/1698 KB 361/1698 KB 365/1698 KB 369/1698 KB 373/1698 KB 377/1698 KB 381/1698 KB 385/1698 KB 389/1698 KB 393/1698 KB 397/1698 KB 401/1698 KB 405/1698 KB 409/1698 KB 413/1698 KB 417/1698 KB 421/1698 KB 425/1698 KB 429/1698 KB 433/1698 KB 437/1698 KB 441/1698 KB 445/1698 KB 449/1698 KB 453/1698 KB 457/1698 KB 461/1698 KB 465/1698 KB 469/1698 KB 473/1698 KB 477/1698 KB 481/1698 KB 485/1698 KB 489/1698 KB 493/1698 KB 497/1698 KB 501/1698 KB 505/1698 KB 509/1698 KB 513/1698 KB 517/1698 KB 521/1698 KB 525/1698 KB 529/1698 KB 533/1698 KB 537/1698 KB 541/1698 KB 545/1698 KB 549/1698 KB 553/1698 KB 557/1698 KB 561/1698 KB 565/1698 KB 569/1698 KB 573/1698 KB 577/1698 KB 581/1698 KB 585/1698 KB 589/1698 KB 593/1698 KB 597/1698 KB 601/1698 KB 605/1698 KB 609/1698 KB 613/1698 KB 617/1698 KB 621/1698 KB 625/1698 KB 629/1698 KB 633/1698 KB 637/1698 KB 641/1698 KB 645/1698 KB 649/1698 KB 653/1698 KB 657/1698 KB 661/1698 KB 665/1698 KB 669/1698 KB 673/1698 KB 677/1698 KB 681/1698 KB 685/1698 KB 689/1698 KB 693/1698 KB 697/1698 KB 701/1698 KB 705/1698 KB 709/1698 KB 713/1698 KB 717/1698 KB 721/1698 KB 725/1698 KB 729/1698 KB 733/1698 KB 737/1698 KB 741/1698 KB 745/1698 KB 749/1698 KB 753/1698 KB 757/1698 KB 761/1698 KB 765/1698 KB 769/1698 KB 773/1698 KB 777/1698 KB 781/1698 KB 785/1698 KB 789/1698 KB 793/1698 KB 797/1698 KB 801/1698 KB 805/1698 KB 809/1698 KB 813/1698 KB 817/1698 KB 821/1698 KB 825/1698 KB 829/1698 KB 833/1698 KB 837/1698 KB 841/1698 KB 845/1698 KB 849/1698 KB 853/1698 KB 857/1698 KB 861/1698 KB 865/1698 KB 869/1698 KB 873/1698 KB 877/1698 KB 881/1698 KB 885/1698 KB 889/1698 KB 893/1698 KB 897/1698 KB 901/1698 KB 905/1698 KB 909/1698 KB 913/1698 KB 917/1698 KB 921/1698 KB 925/1698 KB 929/1698 KB 933/1698 KB 937/1698 KB 941/1698 KB 945/1698 KB 949/1698 KB 953/1698 KB 957/1698 KB 961/1698 KB 965/1698 KB 969/1698 KB 973/1698 KB 977/1698 KB 981/1698 KB 985/1698 KB 989/1698 KB 993/1698 KB 997/1698 KB 1001/1698 KB 1005/1698 KB 1009/1698 KB 1013/1698 KB 1017/1698 KB 1021/1698 KB 1025/1698 KB 1029/1698 KB 1033/1698 KB 1037/1698 KB 1041/1698 KB 1045/1698 KB 1049/1698 KB 1053/1698 KB 1057/1698 KB 1061/1698 KB 1065/1698 KB 1069/1698 KB 1073/1698 KB 1077/1698 KB 1081/1698 KB 1085/1698 KB 1089/1698 KB 1093/1698 KB 1097/1698 KB 1101/1698 KB 1105/1698 KB 1109/1698 KB 1113/1698 KB 1117/1698 KB 1121/1698 KB 1125/1698 KB 1129/1698 KB 1133/1698 KB 1137/1698 KB 1141/1698 KB 1145/1698 KB 1149/1698 KB 1153/1698 KB 1157/1698 KB 1161/1698 KB 1165/1698 KB 1169/1698 KB 1173/1698 KB 1177/1698 KB 1181/1698 KB 1185/1698 KB 1189/1698 KB 1193/1698 KB 1197/1698 KB 1201/1698 KB 1205/1698 KB 1209/1698 KB 1213/1698 KB 1217/1698 KB 1221/1698 KB 1225/1698 KB 1229/1698 KB 1233/1698 KB 1237/1698 KB 1241/1698 KB 1245/1698 KB 1249/1698 KB 1253/1698 KB 1257/1698 KB 1261/1698 KB 1265/1698 KB 1269/1698 KB 1273/1698 KB 1277/1698 KB 1281/1698 KB 1285/1698 KB 1289/1698 KB 1293/1698 KB 1297/1698 KB 1301/1698 KB 1305/1698 KB 1309/1698 KB 1313/1698 KB 1317/1698 KB 1321/1698 KB 1325/1698 KB 1329/1698 KB 1333/1698 KB 1337/1698 KB 1341/1698 KB 1345/1698 KB 1349/1698 KB 1353/1698 KB 1357/1698 KB 1361/1698 KB 1365/1698 KB 1369/1698 KB 1373/1698 KB 1377/1698 KB 1381/1698 KB 1385/1698 KB 1389/1698 KB 1393/1698 KB 1397/1698 KB 1401/1698 KB 1405/1698 KB 1409/1698 KB 1413/1698 KB 1417/1698 KB 1421/1698 KB 1425/1698 KB 1429/1698 KB 1433/1698 KB 1437/1698 KB 1441/1698 KB 1445/1698 KB 1449/1698 KB 1453/1698 KB 1457/1698 KB 1461/1698 KB 1465/1698 KB 1469/1698 KB 1473/1698 KB 1477/1698 KB 1481/1698 KB 1485/1698 KB 1489/1698 KB 1493/1698 KB 1497/1698 KB 1501/1698 KB 1505/1698 KB 1509/1698 KB 1513/1698 KB 1517/1698 KB 1521/1698 KB 1525/1698 KB 1529/1698 KB 1533/1698 KB 1537/1698 KB 1541/1698 KB 1545/1698 KB 1549/1698 KB 1553/1698 KB 1557/1698 KB 1561/1698 KB 1565/1698 KB 1569/1698 KB 1573/1698 KB 1577/1698 KB 1581/1698 KB 1585/1698 KB 1589/1698 KB 1593/1698 KB 1597/1698 KB 1601/1698 KB 1605/1698 KB 1609/1698 KB 1613/1698 KB 1617/1698 KB 1621/1698 KB 1625/1698 KB 1629/1698 KB 1633/1698 KB 1637/1698 KB 1641/1698 KB 1645/1698 KB 1649/1698 KB 1653/1698 KB 1657/1698 KB 1661/1698 KB 1665/1698 KB 1669/1698 KB 1673/1698 KB 1677/1698 KB 1681/1698 KB 1685/1698 KB 1689/1698 KB 1693/1698 KB 1697/1698 KB 1698/1698 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-20200126.234139-97.jar (1698 KB at 6734.9 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. ConstructorEncapsulation # Constructor: 2 in 40ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.217 sec - in fr.inria.spirals.npefix.transformer.processors.ConstructorEncapsulationTest Running fr.inria.spirals.npefix.transformer.processors.ArrayAccessTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.721 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.003 sec - in fr.inria.spirals.npefix.transformer.processors.BeforeDerefAdderTest Running fr.inria.spirals.npefix.transformer.processors.TernarySplitterTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. TernarySplitter in 14ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec - in fr.inria.spirals.npefix.transformer.processors.TernarySplitterTest Running fr.inria.spirals.npefix.transformer.processors.ImplicitCastCheckerTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. AddImplicitCastChecker --> 4 in 9ms BeforeDeref --> 31 (failed:0) in 40ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.593 sec - in fr.inria.spirals.npefix.transformer.processors.ImplicitCastCheckerTest Running fr.inria.spirals.npefix.transformer.processors.CheckNotNullTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. 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 40ms Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.265 sec - in fr.inria.spirals.npefix.transformer.processors.CheckNotNullTest Running fr.inria.spirals.npefix.transformer.processors.TargetModifierTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. target--> 29 (failed:0) in 33ms 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.204 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. CheckNotNull in 0ms ForceNullInit in 1ms AddImplicitCastChecker --> 0 in 0ms Assign --> 0 (failed: 0) in 1ms VarInit --> 0 in 0ms TryCatchRepair # Method: 4 in 15ms ConstructorTryCatchRepair # Constructor: 0 in 0ms 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: 0.872 sec - in fr.inria.spirals.npefix.transformer.TryCatchRepairModelTest Running fr.inria.spirals.npefix.patchTemplate.ReplaceGlobalTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.366 sec - in fr.inria.spirals.npefix.patchTemplate.ReplaceGlobalTest Running fr.inria.spirals.npefix.patchTemplate.VariableFinderTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.1 sec - in fr.inria.spirals.npefix.patchTemplate.VariableFinderTest Running fr.inria.spirals.npefix.patchTemplate.SkipLineTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.127 sec - in fr.inria.spirals.npefix.patchTemplate.SkipLineTest Running fr.inria.spirals.npefix.patchTemplate.SkipMethodReturnTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.323 sec - in fr.inria.spirals.npefix.patchTemplate.SkipMethodReturnTest Running fr.inria.spirals.npefix.patchTemplate.ReplaceLocalTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.348 sec - in fr.inria.spirals.npefix.patchTemplate.ReplaceLocalTest Running fr.inria.spirals.npefix.patch.PatchesGeneratorTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. --- 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.306 sec - in fr.inria.spirals.npefix.patch.PatchesGeneratorTest Running fr.inria.spirals.npefix.main.all.LauncherTest [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. TernarySplitter in 4ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 13ms ForceNullInit in 2ms AddImplicitCastChecker --> 4 in 3ms BeforeDeref --> 29 (failed:0) in 12ms 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 55ms ConstructorEncapsulation # Constructor: 2 in 7ms VariableFor in 4ms NoStrat FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest Status: Ko FooClassTest#foo1Test Status: Ko FooClassTest#fooLocalTest Status: Ko FooClassTest#fooGlobalTest Status: Ko FooClassTest#fooVariableLocalTest Status: Ko FooClassTest#fooVariableGlobalTest Status: Ko FooClassTest#returnVoidTest Status: Ko Strat1A FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest Status: Ko FooClassTest#foo1Test 1 Strat1A Foo:21 result Status: Ko FooClassTest#fooLocalTest Status: Ko FooClassTest#fooGlobalTest Status: Ko FooClassTest#fooVariableLocalTest 1 Strat1A Foo:49 Used empty Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat1A Foo:58 Used empty Status: Ok FooClassTest#returnVoidTest Status: Ko Strat1B FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest Status: Ko FooClassTest#foo1Test 1 Strat1B Foo:21 result Status: Ko FooClassTest#fooLocalTest Status: Ko FooClassTest#fooGlobalTest Status: Ko FooClassTest#fooVariableLocalTest 1 Strat1B Foo:49 Used empty Status: Ko FooClassTest#fooVariableGlobalTest 1 Strat1B Foo:58 Used empty Status: Ok FooClassTest#returnVoidTest Status: Ko Strat2A FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 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 Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 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 Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 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 Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest 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 Status: Ko Strat4 VAR FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest Status: Ko FooClassTest#foo1Test 1 Strat4 VAR Foo:21 Used result Status: Ok FooClassTest#fooLocalTest Status: Ko FooClassTest#fooGlobalTest 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 Status: Ko Strat4 NEW FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest 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 Status: Ko Strat4 VOID FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 Status: Ko FooClassTest#fooTest 1 Strat4 VOID Foo:16 Used null Status: Ok FooClassTest#foo1Test Status: Ko FooClassTest#fooLocalTest Status: Ko FooClassTest#fooGlobalTest Status: Ko FooClassTest#fooVariableLocalTest Status: Ko FooClassTest#fooVariableGlobalTest Status: Ko FooClassTest#returnVoidTest 1 Strat4 VOID Foo:67 Used null Status: Ok [main] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. TernarySplitter in 3ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 9ms ForceNullInit in 2ms AddImplicitCastChecker --> 4 in 3ms BeforeDeref --> 29 (failed:0) in 10ms target--> 32 (failed:0) in 23ms TryRegister # Try: 1 in 6ms Assign --> 19 (failed: 0) in 16ms VarInit --> 10 in 5ms MethodEncapsulation # Method: 52 in 49ms ConstructorEncapsulation # Constructor: 2 in 19ms VariableFor in 3ms ArrayReadReturnNull FooArrayAccessTest#fooTest Status: Ko FooArrayAccessTest#fooTest1 Status: Ko FooArrayAccessTest#fooTest2 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] WARN spoon.Launcher - Spoon is now using the 'no classpath mode' by default. If you want to ensure using Spoon in full classpath mode, please use the new flag: --cpmode fullclasspath. [main] WARN spoon.Launcher - Spoon now parses by default the comments. Consider using the option --disable-comments if you want the old behaviour. TernarySplitter in 4ms type = (element != null) ? element.getClass() : Object.class CheckNotNull in 8ms ForceNullInit in 1ms AddImplicitCastChecker --> 4 in 3ms BeforeDeref --> 29 (failed:0) in 13ms target--> 32 (failed:0) in 21ms TryRegister # Try: 1 in 14ms Assign --> 19 (failed: 0) in 16ms VarInit --> 10 in 6ms MethodEncapsulation # Method: 76 in 56ms ConstructorEncapsulation # Constructor: 2 in 6ms VariableFor in 4ms Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.958 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.168 s [INFO] Finished at: 2020-01-27T05:24:29+01:00 [INFO] Final Memory: 29M/213M [INFO] ------------------------------------------------------------------------ No mail will be sent out, as 'npefix #1093' does not have a result yet. Please make sure you set a proper result in case of pipeline/build scripts. Finished: SUCCESS