You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:04:05 UTC
[sling-org-apache-sling-scripting-java] 31/41: SLING-1021 : Use own
sling scope to store private attributes.
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.scripting.java-1.0.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-java.git
commit 04fbce0eee8356ee0a43e512ff916551092db078
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Thu Jul 23 10:17:52 2009 +0000
SLING-1021 : Use own sling scope to store private attributes.
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/scripting/java@797001 13f79535-47bb-0310-9956-ffa450edef68
---
.../java/org/apache/sling/scripting/java/JavaScriptEngineFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/apache/sling/scripting/java/JavaScriptEngineFactory.java b/src/main/java/org/apache/sling/scripting/java/JavaScriptEngineFactory.java
index 1363b5c..729702f 100644
--- a/src/main/java/org/apache/sling/scripting/java/JavaScriptEngineFactory.java
+++ b/src/main/java/org/apache/sling/scripting/java/JavaScriptEngineFactory.java
@@ -169,7 +169,7 @@ public class JavaScriptEngineFactory extends AbstractScriptEngineFactory {
final SlingScriptHelper scriptHelper,
final ScriptContext context) {
ResourceResolver resolver = (ResourceResolver) context.getAttribute(SlingScriptConstants.ATTR_SCRIPT_RESOURCE_RESOLVER,
- ScriptContext.GLOBAL_SCOPE);
+ SlingScriptConstants.SLING_SCOPE);
if ( resolver == null ) {
resolver = scriptHelper.getScript().getScriptResource().getResourceResolver();
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.