In 45931 function setTrimSpaces(boolean trimSpaces) has been replaced with setTrimSpaces(TrimSpacesOption trimSpaces). This breaks org.jasig.mojo.jspc jspc-compiler-tomcat8 maven plugin. This plugin is used for precompiling jsp files. It would be nice, if this plugin would work with Tomcat 9. It can be fixed be returning this function: public void setTrimSpaces(boolean trimSpaces) { if (trimSpaces) { setTrimSpaces(TrimSpacesOption.TRUE); } else { setTrimSpaces(TrimSpacesOption.FALSE); } }
Function should be in org.apache.jasper.JspC.
Since TrimSpaces is the only API change between 8.5.x and 9.0.x (and the old version isn't deprectaed in 8.5.x) I can see the merit in this proposal. Patch applied as suggested to 9.0.x for 9.0.9 onwards. Many thanks.