jamesfredley commented on code in PR #16771:
URL: https://github.com/apache/grails-core/pull/16771#discussion_r4392597268


##########
grails-bootstrap/src/main/groovy/org/grails/config/NavigableMap.groovy:
##########
@@ -152,16 +152,22 @@ class NavigableMap implements Map<String, Object>, 
Cloneable {
             Object sourceKeyObject = entry.key
             Object sourceValue = entry.value
             String sourceKey = String.valueOf(sourceKeyObject)
+            if (sourceValue instanceof HeldList && !targetMap.is(rootMap)) {

Review Comment:
   After an indexed write, `other.merge([app: [rows: config.app.rows]])` skips 
the `HeldList` because that source has no `rows[0]` siblings. 
`other.navigate('app', 'rows')` is null.
   
   Skip the list only when those indexed entries are actually beside it and 
rebuild it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to