Branch: refs/heads/master
Home:
https://github.com/weld/core
Commit: ee9f19667ca973dc7007144426c5961be6ec6ed1
https://github.com/weld/core/commit/ee9f19667ca973dc7007144426c5961be6ec6ed1
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