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:24 UTC

[myfaces] branch 2.3-next updated: MYFACES-4548: 2.3-next USE_LAMBDA_METAFACTORY default false (#501)

This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch 2.3-next
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3-next by this push:
     new 208eeca3f MYFACES-4548: 2.3-next USE_LAMBDA_METAFACTORY default false (#501)
208eeca3f is described below

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

    MYFACES-4548: 2.3-next USE_LAMBDA_METAFACTORY default false (#501)
---
 .../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 383570d27..6e9de6812 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,