spring-framework/spring-web
Sam Brannen a221835558 Throw IllegalStateException for invalid port in HierarchicalUriComponents
Prior to this commit, getPort() in HierarchicalUriComponents threw a
NumberFormatException for an invalid port supplied as a String, which
was inconsistent with exception handling elsewhere in the class as well
as within the same method.

This commit introduces a try-catch block in getPort() to consistently
throw IllegalStateExceptions for ports that cannot be parsed.

Closes gh-28521
2022-05-25 11:29:12 +02:00
..
src Throw IllegalStateException for invalid port in HierarchicalUriComponents 2022-05-25 11:29:12 +02:00
spring-web.gradle Migrate CoroutinesUtils to Java 2021-09-13 17:39:45 +02:00