Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with Java8 Nashorn engine #4

Open
lapsus63 opened this issue Jul 5, 2017 · 0 comments
Open

Not compatible with Java8 Nashorn engine #4

lapsus63 opened this issue Jul 5, 2017 · 0 comments

Comments

@lapsus63
Copy link

lapsus63 commented Jul 5, 2017

I couldn't make this run using JDK 8.0_131 (x64).
Here is the stack trace :

Exception in thread "main" java.lang.ArrayStoreException: jdk.nashorn.internal.runtime.Undefined
at jdk.nashorn.internal.runtime.arrays.ObjectArrayData.setEmpty(ObjectArrayData.java:161)
at jdk.nashorn.internal.runtime.arrays.ObjectArrayData.delete(ObjectArrayData.java:228)
at jdk.nashorn.internal.runtime.ScriptObject.delete(ScriptObject.java:3309)
at jdk.nashorn.internal.objects.NativeArray.shift(NativeArray.java:1170)
at jdk.nashorn.internal.scripts.Script$13$^eval_.:program(:32)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:150)
at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
at uglify.UglifyJS.run(UglifyJS.java:75)
at uglify.UglifyJS.exec(UglifyJS.java:50)
at uglify.ant.UglifyTask.execute(UglifyTask.java:237)
at uglify.ant.UglifyTask.main(UglifyTask.java:37)

I tried with an old JDK6u45 (x64) -> too old

I tried with JDK 7.0.40:

  • Ok if I run from main

  • Nok if I run from ant task (uglify is not defined):

    [uglify] javax.script.ScriptException: sun.org.mozilla.javascript.internal.EvaluatorException: Cannot modify a property of a sealed object: remove. (#12) in at line number 12
    [uglify] Caused by: sun.org.mozilla.javascript.internal.EvaluatorException: Cannot modify a property of a sealed object: remove. (#12)

    [uglify] javax.script.ScriptException: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "uglify" n'est pas défini (it seems UglifyJS-java can't read non-ASCII characters in UTF8 files #1) in at line number 1
    [uglify] Caused by: sun.org.mozilla.javascript.internal.EcmaError: ReferenceError: "uglify" n'est pas défini (it seems UglifyJS-java can't read non-ASCII characters in UTF8 files #1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant