The contains() method of ManagedArray does fails to confirm if an object is an element of this Array when using asTask() or isolated() methods, like below:
Items it = Items.getFirstItem();
while ( it != null) {
…
asTask( () -> {
for (StockItems s = StockItems.getFirstStockItems(); s != null; s = s.getNextStockItems()) {
if (s.getItems().contains(it)) {
…
}
}
});
…
it = it.getNextItem();
}
I noticed "contains()" method is using operator "==" and I'm wondering if this should use "equals()" method instead of "==" operator.
You can use the same code from branch issue.340, directory issue.340 to validate it.
[imported from HPE issue 341]
Assuming the following Schemas:
The contains() method of ManagedArray does fails to confirm if an object is an element of this Array when using asTask() or isolated() methods, like below:
I noticed "contains()" method is using operator "==" and I'm wondering if this should use "equals()" method instead of "==" operator.
You can use the same code from branch issue.340, directory issue.340 to validate it.