Public constructor is ignored in tests generated by Fuzzer #2539
Labels
comp-codegen
Issue is related to code generator
comp-fuzzing
Issue is related to the fuzzing
comp-spring
Issue is related to Spring projects support
ctg-bug
Issue is a bug
Milestone
Description
Public constructor is ignored in tests generated by Fuzzer.
To Reproduce
spring-petclinic
projectRecursion
Java class fromutbot-sample
org/springframework/samples/petclinic/model
inspring-petclinic
Recursion$factorial
Expected behavior
Recursion class is public and should be instantiated without reflection, just with new T()
Actual behavior
UtUtils.createInstance
method is used to instantiateRecursion
in all Fuzzing generated tests.Screenshots, logs
Environment
IntelliJ IDEA version - Ultimate 2023.2
Project - spring-petclinic
JDK - 17
Additional context
If symbolic execution is on, tests generated with symbolic engine have correct instantiation with direct constructor call:
The text was updated successfully, but these errors were encountered: