cnsgithub commented on issue #27: MYFACES-4266: Ajax update fails due to 
invalid characters in response XML (DoS)
URL: https://github.com/apache/myfaces/pull/27#issuecomment-441461685
 
 
   > 1. I think we should overwrite all #write methods, to cover 100% all 
cases?! Probably also writeText?
   
   I think the remaining `writeXXX` methods operate on a higher abstraction 
level and internally call the low level methods like the ones that have already 
been overridden. The provided unit test is already testing `writeText` to 
verify this assumption.
   
   > 2. all #write methods should call the same super.write - currently the 
write(String) calls super.write(char[]) to avoid confusion (and maybe but 
unlikely bugs)
   
   I am a bit confused as this statement seems to be in contrast to what you 
have written in your first review. Afterwards I changed the behavior in 
https://github.com/apache/myfaces/pull/27/commits/c89e67fd1f5c9456f53f3a3c13b5123da510b632
 to fit your requirement.
    
   > JFYI: you can also use a for-each loop when looping over arrays, we just 
avoid it on ArrayLists, to avoid a iterator instance (ArrayLists are used for 
component lists e.g. and the component tree is traversed very often)
   
   Ok, good to know. However, in this special case it's probably necessary to 
have a counter since we don't want to copy the array, instead we want to modify 
the contents of the existing array.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to