From c54d0156d215e7997d4b6d655525d47151c4c422 Mon Sep 17 00:00:00 2001 From: shanggeeth Date: Wed, 31 Jan 2024 22:50:49 +0530 Subject: [PATCH] Fix minor bug in JsWrapperFactoryProvider logic --- .../auth/functions/user/model/JsWrapperFactoryProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user/model/JsWrapperFactoryProvider.java b/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user/model/JsWrapperFactoryProvider.java index 5536e08a..fbd37dc3 100644 --- a/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user/model/JsWrapperFactoryProvider.java +++ b/components/org.wso2.carbon.identity.conditional.auth.functions.user/src/main/java/org/wso2/carbon/identity/conditional/auth/functions/user/model/JsWrapperFactoryProvider.java @@ -20,6 +20,7 @@ import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsBaseGraphBuilderFactory; import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.JsGraphBuilderFactory; +import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.graaljs.JsGraalGraphBuilderFactory; import org.wso2.carbon.identity.application.authentication.framework.config.model.graph.openjdk.nashorn.JsOpenJdkNashornGraphBuilderFactory; import org.wso2.carbon.identity.application.authentication.framework.util.FrameworkUtils; @@ -37,7 +38,7 @@ private JsWrapperFactoryProvider() { JsBaseGraphBuilderFactory jsGraphBuilderFactory = FrameworkUtils.createJsGraphBuilderFactoryFromConfig(); if (jsGraphBuilderFactory instanceof JsOpenJdkNashornGraphBuilderFactory) { jsWrapperBaseFactory = new JsOpenJdkNashornWrapperFactory(); - } else if (jsGraphBuilderFactory instanceof JsGraalWrapperFactory) { + } else if (jsGraphBuilderFactory instanceof JsGraalGraphBuilderFactory) { jsWrapperBaseFactory = new JsGraalWrapperFactory(); } else { jsWrapperBaseFactory = new JsWrapperFactory();