DSV score corruption on nullable shadow source #1704
Closed
simontiffert
started this conversation in
General
Replies: 3 comments 4 replies
-
Thanks for reporting this, Simon! |
Beta Was this translation helpful? Give feedback.
2 replies
-
This is a duplicate of #1696 ; no variable/score corruption on |
Beta Was this translation helpful? Give feedback.
0 replies
-
@simontiffert If you want to confirm with your own code, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a PlanningList project with task scheduling where sub-tasks are assigned to resources and every task can have multiple predecessors.
@ShadowSources({"resource", "previous.endDateTime", "predecessors[].endDateTime"})
I have an additional dependency in the sub-task to another linked sub-task, which is nullable. I first tried solving it with inheritance as it is only for specific types of sub-tasks, but realized that re-defining the ShadowSources annotations violates rule 4.
The following annotation is causing a score corruption with TRACKED_FULL_ASSERT even if the variable unused (which is of type sub-task) is always null (in 1.23.0 + 1.24.0):
@ShadowSources({"resource", "previous.endDateTime", "predecessors[].endDateTime", "unused.endDateTime"})
And yes, it is called differently in the code, but I added a new variable to make sure it is not assigned and I can reproduce the issue.
I don't have a reproducer yet which I can provide, but if it is needed I can build one.
I tried solving it traditionally with the custom VariableListener as well, but is it possible to define a ShadowVariable for the list of predecessor sub-task objects?
Beta Was this translation helpful? Give feedback.
All reactions