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 2020/04/12 21:51:28 UTC

[myfaces] branch master updated: fixed build

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 833adc1  fixed build
833adc1 is described below

commit 833adc1880e9bb5acfbbb96e84f3cc438f512a81
Author: Thomas Andraschko <ta...@apache.org>
AuthorDate: Sun Apr 12 23:51:19 2020 +0200

    fixed build
---
 .../main/java/org/apache/myfaces/config/MyfacesConfig.java  | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
index bf663fe..cc63e2e 100755
--- a/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
+++ b/impl/src/main/java/org/apache/myfaces/config/MyfacesConfig.java
@@ -950,6 +950,17 @@ public class MyfacesConfig
     {
         numberOfFlashTokensInSession = (NUMBER_OF_VIEWS_IN_SESSION_DEFAULT
                 / NUMBER_OF_SEQUENTIAL_VIEWS_IN_SESSION_DEFAULT) + 1;
+
+        try
+        {
+            MethodHandles.class.getMethod("privateLookupIn", Class.class,
+                    MethodHandles.Lookup.class);
+            useMethodHandles = true;
+        }
+        catch (NoSuchMethodException e)
+        {
+            useMethodHandles = false;
+        }
     }
 
     private static MyfacesConfig createAndInitializeMyFacesConfig(ExternalContext extCtx)
@@ -1320,7 +1331,7 @@ public class MyfacesConfig
         {
             try
             {
-                 MethodHandles.class.getMethod("privateLookupIn", Class.class,
+                MethodHandles.class.getMethod("privateLookupIn", Class.class,
                         MethodHandles.Lookup.class);
             }
             catch (NoSuchMethodException e)