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
Description:
There is an issue with the ExecutionContext class where the dirty flag does not stay true when a null value is passed for a key that does not exist in the context. This behavior leads to unexpected results, especially when the dirty flag is used to determine if any modifications have been made to the context.
Steps to Reproduce:
Create a new ExecutionContext
Add a new key-value pair using put, which sets the dirty flag to true
Call put again with a different key and null value
Observe that the dirty flag is incorrectly reset to false even though no change occurred
Example Code:
@TestvoidtestDirty() {
ExecutionContextcontext = newExecutionContext();
context.put("1", "testString1");
assertTrue(context.isDirty()); // Expected to be truecontext.put("2", null);
assertTrue(context.isDirty()); // This fails, `dirty` flag is reset to false
}
The text was updated successfully, but these errors were encountered:
GGHDMS
changed the title
ExecutionContextdirty flag does not remain true when null is put for a non-existent keyExecutionContext dirty flag does not remain true when null is put for a non-existent key
Oct 27, 2024
GGHDMS
changed the title
ExecutionContext dirty flag does not remain true when null is put for a non-existent key
ExecutionContext dirty flag does not remain true when null is put for a non-existent key
Oct 27, 2024
Issue Description
Description:
There is an issue with the
ExecutionContext
class where thedirty
flag does not staytrue
when anull
value is passed for a key that does not exist in the context. This behavior leads to unexpected results, especially when thedirty
flag is used to determine if any modifications have been made to the context.Steps to Reproduce:
ExecutionContext
put
, which sets thedirty
flag totrue
put
again with a different key andnull
valuedirty
flag is incorrectly reset tofalse
even though no change occurredExample Code:
The text was updated successfully, but these errors were encountered: