Search code examples
groovygaelyk

Groovy JavaDocs - Is there a 'since' version label for XmlUtil?


I'm trying to find when XmlUtil was first introduced to Groovy? Is there a 'since' version X tag somewhere and I'm just not seeing it? In Groovy 2.0.5 I'm getting a missing method exception but not in 2.1.3 for escapeXml().

groovy.lang.MissingMethodException: No signature of method: static
groovy.xml.XmlUtil.escapeXml() is applicable for argument types: 
(java.lang.String) values: [<request>

Solution

  • XmlUtil has been there for years, however looking at the blame page on github, it looks like the escapeXml method was added 2013-01-06 as part of the fix for GROOVY-5775 which looking at the issue, shows it went in to Groovy 2.1.0