Hello! 

yesterday, Renovate Bot generated a pull request to update commons-text from 
1.10.0 to 1.11.0 in my application. This version is not listed in the release 
history <https://commons.apache.org/proper/commons-text/changes-report.html>, 
so I guess it is not released officially, but it is published. Anyway, tests 
failed with the following exception. 

java.lang.NoSuchMethodError: 'org.apache.commons.lang3.Range 
org.apache.commons.lang3.Range.of(java.lang.Comparable, java.lang.Comparable)' 
at 
org.apache.commons.text.translate.NumericEntityEscaper.<init>(NumericEntityEscaper.java:97)
 
at 
org.apache.commons.text.translate.NumericEntityEscaper.between(NumericEntityEscaper.java:59)
 
at 
org.apache.commons.text.StringEscapeUtils.<clinit>(StringEscapeUtils.java:271) 

Apparently, commons-text 1.11.0 uses Range.of(java.lang.Comparable, 
java.lang.Comparable), which appears to have been added to commons-lang3 in 
version 3.13.0. My application does not use commons-lang3 directly, so it is 
transitively pulled in by commons-text, but with version 3.12.0, which does not 
have Range.of(java.lang.Comparable, java.lang.Comparable). Manually adding 
commons-lang 3.13.0 to my POM fixes the problem. 

Is there an error in the commons-text POM? 

Kind regards,

Sebastian Hans 


Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to