Skip to content

Commit ac1a030

Browse files
committed
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
1 parent fdbefad commit ac1a030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-core/src/main/java/org/springframework/util/PlaceholderResolutionException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* @since 6.2
3232
*/
3333
@SuppressWarnings("serial")
34-
public class PlaceholderResolutionException extends RuntimeException {
34+
public class PlaceholderResolutionException extends IllegalArgumentException {
3535

3636
private final String reason;
3737

0 commit comments

Comments
 (0)