garydgregory commented on PR #588:
URL: 
https://github.com/apache/httpcomponents-client/pull/588#issuecomment-2408590622

   I tried changing the return type on a static method in a different project 
(Apache Commons IO) and JApiCmp failed with:
   ```
   [ERROR] Failed to execute goal 
com.github.siom79.japicmp:japicmp-maven-plugin:0.23.0:cmp (default-cli) on 
project commons-io: There is at least one incompatibility: 
org.apache.commons.io.FileUtils.touch(java.io.File):METHOD_RETURN_TYPE_CHANGED 
-> [Help 1]
   ```
   We are not using the latest version in HC parent, so this could be a bug in 
an old version of JApiCmp.
   
   The JLS says that changing a return type is the same as removing and adding 
a method.
   See [13.4.15. Method Result 
Type](https://docs.oracle.com/javase/specs/jls/se23/html/jls-13.html#jls-13.4.15)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to