Java fuzzer can't create any values for types with no public constructor (e.g. LocalDateTime
)
#2437
Labels
comp-fuzzing
Issue is related to the fuzzing
ctg-bug
Issue is a bug
lang-java
Issue is related to Java support
Description
When creating instances of arbitrary classes Java fuzzer only considers their accessible constructors. However, some classes (e.g.
LocalDateTime
) only have private constructors while their instances are meant to be created usingstatic
methods.Real world (concrete) example
Same as in #2428
To Reproduce
Run the following unit test.
Expected behavior
Test passes.
Actual behavior
Test fails.
Visual proofs (screenshots, logs, images)
The text was updated successfully, but these errors were encountered: