You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ta...@apache.org on 2023/02/01 11:18:07 UTC
[myfaces] branch main updated: MYFACES-4556
This is an automated email from the ASF dual-hosted git repository.
tandraschko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/myfaces.git
The following commit(s) were added to refs/heads/main by this push:
new 4f96faccc MYFACES-4556
4f96faccc is described below
commit 4f96facccb1d81414c94a367a6d7606caa3464e7
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Wed Feb 1 12:17:58 2023 +0100
MYFACES-4556
---
.../org/apache/myfaces/el/resolver/LambdaBeanELResolver.java | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/impl/src/main/java/org/apache/myfaces/el/resolver/LambdaBeanELResolver.java b/impl/src/main/java/org/apache/myfaces/el/resolver/LambdaBeanELResolver.java
index ebe2efa4d..4e62238e8 100644
--- a/impl/src/main/java/org/apache/myfaces/el/resolver/LambdaBeanELResolver.java
+++ b/impl/src/main/java/org/apache/myfaces/el/resolver/LambdaBeanELResolver.java
@@ -54,7 +54,14 @@ public class LambdaBeanELResolver extends BeanELResolver
context.setPropertyResolved(base, property);
- return getPropertyDescriptor(base, property).getPropertyType();
+ PropertyDescriptorWrapper pdw = getPropertyDescriptor(base, property);
+ // spec change since EL 5.0; see MYFACES-4556
+ if (pdw.getWrapped().getWriteMethod() == null)
+ {
+ return null;
+ }
+
+ return pdw.getPropertyType();
}
@SuppressWarnings("unchecked")