- Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
Description
Currently, when using Spring AOP with Kotlin, UndeclaredThrowableException is thrown when a method with advice throws a checked exception. There is a workaround in Kotlin in that you can add @Throws annotations to methods, but this is not really feasible as it would require annotating every method of every project, and methods in other libraries might not be under your control.
What would solve this problem would be to have an option in Spring to disable the throwing of UndeclaredThrowableException and simply throw the original exception.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement