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
Using the automatic update before rule application of non-zero mappings might (a) invalidate matches belonging to other rules, or (b) destroy/reset valid mappings and their variables.
Without any parameter the applyNonZeroMappings-Method will update all matches/mappings prior to applying a rule.
In this example, running getSomeMapping2().applyNonZeroMappings() might destroy mappings of SomeMapping3 which is applied afterwards.
As a temporary fix, always use applyNonZeroMappings(false) to prevent any weird behaviour.
In the future, we should warn users whenever a rule application on a valid and non-zero mapping destroys a valid and non-zero mapping of another rule.
More importantly: Unrelated mappings should not be destroyed / reset by a simple update-call.
The text was updated successfully, but these errors were encountered:
Using the automatic update before rule application of non-zero mappings might (a) invalidate matches belonging to other rules, or (b) destroy/reset valid mappings and their variables.
gipsApi.getSomeMapping().applyNonZeroMappings(); gipsApi.getSomeMapping2().applyNonZeroMappings(); gipsApi.getSomeMapping3().applyNonZeroMappings();
Without any parameter the applyNonZeroMappings-Method will update all matches/mappings prior to applying a rule.
In this example, running
getSomeMapping2().applyNonZeroMappings()
might destroy mappings ofSomeMapping3
which is applied afterwards.As a temporary fix, always use
applyNonZeroMappings(false)
to prevent any weird behaviour.The text was updated successfully, but these errors were encountered: