Browse Source

Make PlaceholderResolutionException extend from IllegalArgumentException

To smooth upgrade from 6.1.x, this commit makes sure that code that used
to catch an IAE to ignore a faulty placeholder resolution still works.

See gh-9628
pull/32367/head
Stéphane Nicoll 2 years ago
parent
commit
ac1a030c35
  1. 2
      spring-core/src/main/java/org/springframework/util/PlaceholderResolutionException.java

2
spring-core/src/main/java/org/springframework/util/PlaceholderResolutionException.java

@ -31,7 +31,7 @@ import org.springframework.lang.Nullable; @@ -31,7 +31,7 @@ import org.springframework.lang.Nullable;
* @since 6.2
*/
@SuppressWarnings("serial")
public class PlaceholderResolutionException extends RuntimeException {
public class PlaceholderResolutionException extends IllegalArgumentException {
private final String reason;

Loading…
Cancel
Save