Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTestExpressionExecutor failed before methodUnderTest call on guava Throwables #119

Open
EgorkaKulikov opened this issue Nov 20, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@EgorkaKulikov
Copy link
Collaborator

Consider the following tests generation scenario:

timeLimit = 120
methodFilter = "com.google.common.base.Throwables.*"
projectFilter = listOf("guava")

The following exception is found in logs

java.lang.IllegalAccessException: java.lang.Class
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.executeUTestAllocateMemoryCall(UTestExpressionExecutor.kt:158) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.exec(UTestExpressionExecutor.kt:63) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.executeUTestSetFieldStatement(UTestExpressionExecutor.kt:233) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.exec(UTestExpressionExecutor.kt:73) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.executeUTestInst-IoAF18A(UTestExpressionExecutor.kt:39) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.testcase.executor.UTestExpressionExecutor.executeUTestInsts-CmtIpJM(UTestExpressionExecutor.kt:49) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.rd.UTestExecutor.executeUTest(UTestExecutor.kt:76) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.rd.InstrumentedProcess.callUTest(InstrumentedProcess.kt:204) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.rd.InstrumentedProcess.access$callUTest(InstrumentedProcess.kt:33) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
	at org.usvm.instrumentation.rd.InstrumentedProcess$setup$1.invoke(InstrumentedProcess.kt:136) ~[usvm-jvm-instrumentation-comp-231118-1620.jar:?]
@EgorkaKulikov EgorkaKulikov added the bug Something isn't working label Nov 20, 2023
@DaniilStepanov
Copy link
Collaborator

We need to handle Java reflection correctly. Will be fixed along with statics and mocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants