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
@PlanningSolution
class MySolution {
@get:PlanningEntityCollectionProperty
var itemList: List<Item> = listOf()
...
I get the error
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalStateException: Member (itemList) of class (com.acme.model.MySolution) is not public and domainAccessType is GIZMO. Maybe put the annotations onto the public getter of the field. Maybe use domainAccessType REFLECTION instead of GIZMO. [in thread "main"]
which is irritating, because the annotation is on the getter, as it explicitly has the Kotlin prefix get:.
But you're right: This isn't an issue with Gizmo itself, it originates in Timefold.
I didn't put much thought to it at the time, but instead went for the public fields approach, as it only affected a few properties in my model.
It seems that GizmoSolutionOrEntityDescriptor creates a GizmoMemberDescriptor for both the getters and the fields, and when iterating over them, it fails at the first field because Modifier.isPublic() returns false.
The text was updated successfully, but these errors were encountered:
From #531:
I get the error
which is irritating, because the annotation is on the getter, as it explicitly has the Kotlin prefix get:.
But you're right: This isn't an issue with Gizmo itself, it originates in Timefold.
I didn't put much thought to it at the time, but instead went for the public fields approach, as it only affected a few properties in my model.
It seems that GizmoSolutionOrEntityDescriptor creates a GizmoMemberDescriptor for both the getters and the fields, and when iterating over them, it fails at the first field because Modifier.isPublic() returns false.
The text was updated successfully, but these errors were encountered: