You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we generate tests using the contest estimator for com.google.common.base.CaseFormat, we will see that the resulting file does not compile because of absent class name in static constant usage: expectedFinalCaseFormat = .UPPER_CAMEL.
To Reproduce
Steps to reproduce the behavior:
Run the contest estimator for com.google.common.base.CaseFormat with 300s time limit
Open generated file
Expected behaviour
Compilable file.
Actual behaviour
Generated file does not compile.
Visual proofs (screenshots, logs, images)
Environment
The default environment for the contest estimator.
Additional context
There is no additional context.
The text was updated successfully, but these errors were encountered:
Historically `UtEnumConstModel` and `UtClassRefModel` have been
processed not as other reference models but in a special way,
more like to primitive types. This approach leads to several
problems, especially to class cast errors when processing generic
collections with enums or class references as elements.
This commit makes `UtEnumConstModel` and `UtClassRefModel` subtypes of
`UtReferenceModel`.
* Concrete executor is modified to respect the identity of static
fields to avoid rewriting enum values and `Class<?>` instances.
* Special processing for enums is implemented.
When a new enum value is created, or an `Object` is being cast
to the enum type, static values for the enum class are initialized,
and the set of hard constraint is added to require that the new
instance has the same address and ordinal as any one of enum
constants to implement reference equality for enums.
Fixes#414, #230, #300
Description
If we generate tests using the contest estimator for
com.google.common.base.CaseFormat
, we will see that the resulting file does not compile because of absent class name in static constant usage:expectedFinalCaseFormat = .UPPER_CAMEL
.To Reproduce
Steps to reproduce the behavior:
com.google.common.base.CaseFormat
with 300s time limitExpected behaviour
Compilable file.
Actual behaviour
Generated file does not compile.
Visual proofs (screenshots, logs, images)

Environment
The default environment for the contest estimator.
Additional context
There is no additional context.
The text was updated successfully, but these errors were encountered: