You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by pa...@apache.org on 2021/11/25 13:22:02 UTC

[sling-org-apache-sling-scripting-core] branch issues/SLING-10939 created (now cc3f21f)

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

pauls pushed a change to branch issues/SLING-10939
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-core.git.


      at cc3f21f  SLING-10939: catch NCDFE when looking up exectuables

This branch includes the following new commits:

     new cc3f21f  SLING-10939: catch NCDFE when looking up exectuables

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[sling-org-apache-sling-scripting-core] 01/01: SLING-10939: catch NCDFE when looking up exectuables

Posted by pa...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pauls pushed a commit to branch issues/SLING-10939
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-core.git

commit cc3f21fa6d5d1185f7db2d734403c8430e34fe85
Author: Karl Pauls <ka...@gmail.com>
AuthorDate: Thu Nov 25 14:21:49 2021 +0100

    SLING-10939: catch NCDFE when looking up exectuables
---
 .../sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java b/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
index 69ccf66..1aec026 100644
--- a/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
+++ b/src/main/java/org/apache/sling/scripting/core/impl/bundled/BundleRenderUnitFinderImpl.java
@@ -95,7 +95,7 @@ public class BundleRenderUnitFinderImpl implements BundledRenderUnitFinder {
         try {
             Class<?> clazz = bundle.loadClass(className);
             return new PrecompiledScript(providers, context, bundle, path, clazz, scriptEngineName, scriptExtension, scriptContextProvider);
-        } catch (ClassNotFoundException ignored) {
+        } catch (ClassNotFoundException | NoClassDefFoundError ignored) {
             URL bundledScriptURL = bundle.getEntry(NS_JAVAX_SCRIPT_CAPABILITY + (path.startsWith("/") ? "" : SLASH) + path);
             if (bundledScriptURL != null) {
                 return new Script(providers, context, bundle, path, bundledScriptURL, scriptEngineName, scriptExtension, scriptContextProvider);