Early Access builds of JDK 8u76 b04, JDK 9 & JDK 9 with Project Jigsaw b104 are available on java.net

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Early Access builds of JDK 8u76 b04, JDK 9 & JDK 9 with Project Jigsaw b104 are available on java.net

Rory O'Donnell

Hi All,

Early Access b04 for JDK 8u76 is available on java.net, summary of  changes are listed here .

Early Access b104 for JDK 9 is available on java.net, summary of  changes are listed here .

JEP 280: Indify String Concatenation [0]

This JEP proposed to change the static String-concatenation bytecode sequence generated by javac to use invokedynamic calls to JDK library functions. This will enable future optimizations of String concatenation without requiring further changes to the bytecode emitted by javac.

Early Access b104 for JDK 9 with Project Jigsaw is available on java.net.

Great to meet so many of you at FOSDEM this year,  videos of some of the presentations are available [1]

Rgds,Rory

[0] http://openjdk.java.net/jeps/280
[1] http://video.fosdem.org/2016/h1301
-- 
Rgds,Rory O'Donnell
Quality Engineering Manager
Oracle EMEA , Dublin, Ireland 
Reply | Threaded
Open this post in threaded view
|

Re: Early Access builds of JDK 8u76 b04, JDK 9 & JDK 9 with Project Jigsaw b104 are available on java.net

ggrossetie
Hi Rory,

Our Asciidoctor.js is failing with the latest JDK9. Here is the stack trace:

thread "main" java.lang.AssertionError: Failed generating bytecode for ./build/asciidoctor-all.js:-1
	at jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase.transform(CompilationPhase.java:436)
	at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:630)
	at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:656)
	at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.compileTypeSpecialization(RecompilableScriptFunctionData.java:717)
	at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.getBest(RecompilableScriptFunctionData.java:897)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.getBest(ScriptFunctionData.java:392)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.getBestInvoker(ScriptFunctionData.java:254)
	at jdk.nashorn.internal.runtime.ScriptFunction.findCallMethod(ScriptFunction.java:915)
	at jdk.nashorn.internal.runtime.ScriptObject.lookup(ScriptObject.java:1862)
	at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:102)
	at jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:94)
	at jdk.dynalink.linker.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:184)
	at jdk.dynalink.linker.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:132)
	at jdk.dynalink.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:146)
	at jdk.dynalink.DynamicLinker.relink(DynamicLinker.java:262)
	at jdk.nashorn.internal.scripts.Script$Recompilation$775$450513$asciidoctor_all.L:15351$TMP_4(./build/asciidoctor-all.js:15486)
	at jdk.nashorn.internal.scripts.Script$Recompilation$774$77771A$asciidoctor_all$cu1$restOf.L:2714$L:2721$TMP_1(./build/asciidoctor-all.js:2753)
	at jdk.nashorn.internal.scripts.Script$Recompilation$772$446506AA$asciidoctor_all$cu1$restOf.L:15351$L:15361$TMP_1(./build/asciidoctor-all.js:15376)
	at jdk.nashorn.internal.scripts.Script$Recompilation$752$445343A$asciidoctor_all$cu1$restOf.L:15351(./build/asciidoctor-all.js:15511)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:656)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:511)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.internal.scripts.Script$Recompilation$251$49130A$asciidoctor_all.L:1$L:1669$load(./build/asciidoctor-all.js:1718)
	at jdk.nashorn.internal.scripts.Script$Recompilation$276$49714A$asciidoctor_all.L:1$L:1669$require(./build/asciidoctor-all.js:1742)
	at jdk.nashorn.internal.scripts.Script$Recompilation$233$560017A$asciidoctor_all$cu1$restOf.L:18853(./build/asciidoctor-all.js:18863)
	at jdk.nashorn.internal.scripts.Script$Recompilation$231$asciidoctor_all$cu1$restOf.:program(./build/asciidoctor-all.js:18853)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:654)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:511)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.internal.runtime.Context.evaluateSource(Context.java:1337)
	at jdk.nashorn.internal.runtime.Context.load(Context.java:929)
	at jdk.nashorn.internal.objects.Global.load(Global.java:1553)
	at jdk.nashorn.internal.scripts.Script$Recompilation$1$\^eval\_.:program(<eval>:1)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:654)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:511)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:445)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
	at jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:398)
	at jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:149)
	at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
	at AsciidoctorConvertWithNashorn.main(AsciidoctorConvertWithNashorn.java:11)
Caused by: java.lang.NullPointerException
	at jdk.internal.org.objectweb.asm.Type.getMethodDescriptor(Type.java:678)
	at jdk.nashorn.internal.codegen.types.Type.getMethodDescriptor(Type.java:207)
	at jdk.nashorn.internal.codegen.FunctionSignature.<init>(FunctionSignature.java:137)
	at jdk.nashorn.internal.codegen.FunctionSignature.<init>(FunctionSignature.java:67)
	at jdk.nashorn.internal.codegen.FunctionSignature.<init>(FunctionSignature.java:154)
	at jdk.nashorn.internal.codegen.ClassEmitter.method(ClassEmitter.java:551)
	at jdk.nashorn.internal.codegen.CodeGenerator.enterFunctionNode(CodeGenerator.java:2100)
	at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:342)
	at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
	at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:47)
	at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:56)
	at jdk.nashorn.internal.codegen.CompilationPhase.transformFunction(CompilationPhase.java:634)
	at jdk.nashorn.internal.codegen.CompilationPhase.access$100(CompilationPhase.java:55)
	at jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase.transform(CompilationPhase.java:423)
	... 41 more

https://ci.appveyor.com/project/asciidoctor/asciidoctor-js

Is this something that you are aware of ?

Thanks,
Guillaume