Skip to content

Commit 26d9901

Browse files
EgorkaKulikovIlyaMuravjov
authored andcommitted
Fix classloader problem and correct class lists (exclude missing classes & classes compiled with Java 17)
1 parent 3080413 commit 26d9901

File tree

4 files changed

+3
-18
lines changed

4 files changed

+3
-18
lines changed

utbot-junit-contest/src/main/kotlin/org/utbot/contest/ContestEstimator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ class ProjectToEstimate(
629629
) {
630630
val outputTestSrcFolder = File(testCandidatesDir, name).apply { mkdirs() }
631631
val unzippedDir = File(unzippedJars, name)
632-
val classloader = URLClassLoader(jars.map { it.toUrl() }.toTypedArray(), null)
632+
val classloader = URLClassLoader(jars.map { it.toUrl() }.toTypedArray(), ClassLoader.getSystemClassLoader().parent)
633633
val sootClasspathString get() = jars.joinToString(classPathSeparator)
634634
val compileClasspathString
635635
get() = arrayOf(outputTestSrcFolder.absolutePath, sootClasspathString, dependenciesJars)
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
org.utbot.examples.codeforces.error.stackof.Task_70A
2-
org.utbot.examples.codeforces.exception.aiobe.Task_70A
3-
org.utbot.examples.codeforces.exception.aiobe.Task_71B
4-
org.utbot.examples.codeforces.exception.aiobe.Task_1712C
5-
org.utbot.examples.codeforces.exception.aiobe.Task_1749C
6-
org.utbot.examples.codeforces.exception.arithmetic.Task_1715B
7-
org.utbot.examples.codeforces.exception.error.Task_1718A2
8-
org.utbot.examples.codeforces.exception.iobe.Task_1740C
9-
org.utbot.examples.codeforces.exception.npe.Task_1703D
10-
org.utbot.examples.codeforces.exception.siobe.Task_75A
11-
org.utbot.examples.codeforces.exception.siobe.Task_1702B

utbot-junit-contest/src/main/resources/classes/fastjson-1.2.50/list

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ com.alibaba.fastjson.serializer.ClobSeriliazer
1515
com.alibaba.fastjson.serializer.JSONSerializer
1616
com.alibaba.fastjson.serializer.StringCodec
1717
com.alibaba.fastjson.support.hsf.HSFJSONUtils
18-
com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
1918
com.alibaba.fastjson.util.IOUtils

utbot-junit-contest/src/main/resources/classes/samples/list

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ org.usvm.samples.wrappers.ByteWrapper
2121
org.usvm.samples.wrappers.BooleanWrapper
2222
org.usvm.samples.arrays.PrimitiveArrays
2323
org.usvm.samples.arrays.IntArrayBasics
24-
org.usvm.samples.arrays.ArraysOfArrays
24+
org.usvm.samples.arrays.ArrayOfArrays
2525
org.usvm.samples.arrays.ArrayOfObjects
2626
org.usvm.samples.arrays.ArraysOverwriteValue
2727
org.usvm.samples.arrays.ArrayStoreExceptionExamples
@@ -34,7 +34,4 @@ org.usvm.samples.types.Generics
3434
org.usvm.samples.types.PathDependentGenericsExample
3535
org.usvm.samples.types.TypeBorders
3636
org.usvm.samples.types.TypeMatches
37-
org.usvm.samples.ternary.Ternary
38-
39-
40-
37+
org.usvm.samples.ternary.Ternary

0 commit comments

Comments
 (0)