r9608 - helma-ng/trunk/src/org/helma/jack
[email protected] Sun, 12 Apr 2009 14:24:07 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090412122407.16E183D0D6@mia> |
Author: hannes
Date: 2009-04-12 14:24:06 +0200 (Sun, 12 Apr 2009)
New Revision: 9608
Modified:
helma-ng/trunk/src/org/helma/jack/JackEnv.java
Log:
Make env properties writable.
Details at http://dev.helma.org/trac/helma/changeset/9608
Modified: helma-ng/trunk/src/org/helma/jack/JackEnv.java
===================================================================
--- helma-ng/trunk/src/org/helma/jack/JackEnv.java 2009-04-11 23:51:20 UTC (rev 9607)
+++ helma-ng/trunk/src/org/helma/jack/JackEnv.java 2009-04-12 12:24:06 UTC (rev 9608)
@@ -96,7 +96,7 @@
public static void finishInit(Scriptable scope, FunctionObject constructor, Scriptable prototype)
throws NoSuchMethodException {
- int flags = READONLY | PERMANENT;
+ int flags = PERMANENT;
Context cx = Context.getCurrentContext();
ScriptableObject proto = (ScriptableObject) prototype;
proto.defineProperty("SCRIPT_NAME", null, getMethod("getScriptName"), null, flags);
@@ -109,7 +109,7 @@
proto.defineProperty("REMOTE_HOST", null, getMethod("getRemoteHost"), null, flags);
proto.defineProperty("jack.input", null, getMethod("getInputStream"), null, flags);
proto.defineProperty("jack.error", null, getMethod("getErrorStream"), null, flags);
- Scriptable version = cx.newArray(scope, new Object[] {new Integer(0), new Integer(1)});
+ Scriptable version = cx.newArray(scope, new Object[] {Integer.valueOf(0), Integer.valueOf(1)});
ScriptableObject.defineProperty(proto, "jack.version", version, flags);
ScriptableObject.defineProperty(proto, "jack.multithread", Boolean.TRUE, flags);
ScriptableObject.defineProperty(proto, "jack.multiprocess", Boolean.TRUE, flags);