File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
utbot-framework/src/main/kotlin/org/utbot/framework/concrete Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ import org.utbot.framework.plugin.api.util.objectClassId
30
30
import org.utbot.framework.plugin.api.util.shortClassId
31
31
import org.utbot.framework.util.valueToClassId
32
32
import java.lang.reflect.Modifier
33
+ import java.security.AccessController
34
+ import java.security.PrivilegedAction
33
35
import java.util.IdentityHashMap
34
36
35
37
/* *
@@ -81,7 +83,7 @@ internal class UtModelConstructor(
81
83
*
82
84
* Handles cache on stateBefore values.
83
85
*/
84
- override fun construct (value : Any? , classId : ClassId ): UtModel =
86
+ override fun construct (value : Any? , classId : ClassId ): UtModel = AccessController .doPrivileged( PrivilegedAction {
85
87
when (value) {
86
88
null -> UtNullModel (classId)
87
89
is Unit -> UtVoidModel
@@ -106,6 +108,7 @@ internal class UtModelConstructor(
106
108
is Class <* > -> constructFromClass(value)
107
109
else -> constructFromAny(value)
108
110
}
111
+ })
109
112
110
113
// Q: Is there a way to get rid of duplicated code?
111
114
You can’t perform that action at this time.
0 commit comments