IntelliJ during debug does not show the values in Spring RedirectAttributes -


when code reaches break point return, expecting see @ least value added in redirattr debug variable shows size of 0. know why don't see anything? using intellij

@requestmapping(value="/hello", method=post) public string hello(final redirectattributes redirattr) {     redirattr.addflashattribute("objects", listofobjects);              return "redirect:/somewhere.htm"; } 

redirattr of size 0 when break point reaches return

default implementation of redirectattributes - redirectattributesmodelmap extends modelmap uses normal (non-flash) attributes. can add redirectattributes.addattribute(...) methods.

internally, implementation uses additional modelmap store flash attributes:

private final modelmap flashattributes = new modelmap(); 

size of structure should change expected when executing code.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -