UTBot CLI throws InaccessibleObjectException
because java.lang
is not opened
#2495
Labels
comp-cli
Issue related to CLI
comp-instrumented-process
Issue is related to Instrumented process
ctg-bug
Issue is a bug
lang-java
Issue is related to Java support
status-verified
Bug fix is verified
Milestone
Description
UTBot CLI throws
InaccessibleObjectException
becausejava.lang
is not openedError report with concrete executions failures is generated
To Reproduce
JAVA_HOME
system variable to JDK-17 directory, include JDK's \bin directory inPath
systems variable and restartjava -version
. Check JDK 17 is usedjavac .\src\org\fuzzing\ListConcurrentModification.java -d .\build
java -jar .\utbot-cli-main-2023.8.5040.jar generate -s .\src\org\fuzzing\ListConcurrentModification.java -cp .\build\ -o .\test\org\fuzzing\ListConcurrentModificationTest.java --generation-timeout 30000 org.fuzzing.ListConcurrentModification
Expected behavior
No exceptions are expected to be thrown when generating tests.
Actual behavior
Several similar InaccessibleObjectExceptions are thrown into console.
Error report with concrete executions failures is generated.
Screenshots, logs
Environment
OS - Windows 10 Pro
Windows Powershell
JDK - 17
Additional context
Test generation with utbot-cli-main-2023.6.4550.jar is successful.
No error report. No exceptions in console.
The text was updated successfully, but these errors were encountered: