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/01/23 14:03:17 UTC

[myfaces] branch main updated: MYFACES-4548: 4.0 USE_LAMBDA_METAFACTORY default false (#500)

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 bfe3d1a2b MYFACES-4548: 4.0 USE_LAMBDA_METAFACTORY default false (#500)
bfe3d1a2b is described below

commit bfe3d1a2bbc50b419b20ed1d92d1efc0acf0cb3f
Author: Melloware <me...@gmail.com>
AuthorDate: Mon Jan 23 09:03:10 2023 -0500

    MYFACES-4548: 4.0 USE_LAMBDA_METAFACTORY default false (#500)
---
 .../apache/myfaces/core/api/shared/lang/PropertyDescriptorUtils.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/api/src/main/java/org/apache/myfaces/core/api/shared/lang/PropertyDescriptorUtils.java b/api/src/main/java/org/apache/myfaces/core/api/shared/lang/PropertyDescriptorUtils.java
index 0acc4b09a..fa95d89a0 100644
--- a/api/src/main/java/org/apache/myfaces/core/api/shared/lang/PropertyDescriptorUtils.java
+++ b/api/src/main/java/org/apache/myfaces/core/api/shared/lang/PropertyDescriptorUtils.java
@@ -102,7 +102,7 @@ public class PropertyDescriptorUtils
         
         // activated per default
         String useMethodHandles = ec.getInitParameter(USE_LAMBDA_METAFACTORY);
-        return useMethodHandles == null || useMethodHandles.trim().isEmpty() || useMethodHandles.contains("true");
+        return useMethodHandles != null && useMethodHandles.contains("true");
     }
 
     public static Map<String, ? extends PropertyDescriptorWrapper> getPropertyDescriptors(ExternalContext ec,