Branch: refs/heads/6.0
Home:
https://github.com/weld/core
Commit: b90fcc33c4db8723a2f867ec6e47b9b7b18247b9
https://github.com/weld/core/commit/b90fcc33c4db8723a2f867ec6e47b9b7b18247b9
Author: Andrew Rouse <anrouse(a)uk.ibm.com>
Date: 2025-03-19 (Wed, 19 Mar 2025)
Changed paths:
M impl/src/main/java/org/jboss/weld/invokable/AbstractInvokerBuilder.java
A impl/src/main/java/org/jboss/weld/invokable/InvokerValidationUtils.java
M impl/src/main/java/org/jboss/weld/invokable/MethodHandleUtils.java
M impl/src/main/java/org/jboss/weld/logging/InvokerLogger.java
A
tests-arquillian/src/test/java/org/jboss/weld/tests/invokable/exceptions/ExceptionTestBean.java
A
tests-arquillian/src/test/java/org/jboss/weld/tests/invokable/exceptions/InvokableExceptionsTest.java
A
tests-arquillian/src/test/java/org/jboss/weld/tests/invokable/exceptions/ObservingExtension.java
Log Message:
-----------
Improve Invoker exception messages
If an invoker invocation causes a ClassCastException,
NullPointerException or IllegalArgumentexception, validate the instance
and arguments to see if the exception was caused by passing invalid
values. If so, discard the original exception and throw a new exception
with more information.
Doing these checks only when the invocation throws an exception avoids
the overhead of doing these checks before every successful invocation.
To unsubscribe from these emails, change your notification settings at
https://github.com/weld/core/settings/notifications