JDK-8066119 : Missing resource type.error.not.an.arraybuffer
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-11-27
  • Updated: 2015-06-04
  • Resolved: 2014-11-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u40Fixed 9 b42Fixed
Description
This test is broken in my development branch, the problem is that when it breaks, it throws a type error that requests a message ID that doesn't exist. We should add it and correct the type error throwing code

zann:make marcus$ n -i ../test/script/basic/dataview_endian.js 
Exception in thread "main" java.lang.RuntimeException: no message resource found for message id: type.error.not.an.arraybuffer
	at jdk.nashorn.internal.runtime.ECMAErrors.getMessage(ECMAErrors.java:389)
	at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:212)
	at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:185)
	at jdk.nashorn.internal.runtime.ECMAErrors.typeError(ECMAErrors.java:172)
	at jdk.nashorn.internal.objects.NativeDataView.checkSelf(NativeDataView.java:998)
	at jdk.nashorn.internal.objects.NativeDataView.getBuffer(NativeDataView.java:1004)
	at jdk.nashorn.internal.objects.NativeDataView.getBuffer(NativeDataView.java:1012)
	at jdk.nashorn.internal.objects.NativeDataView.getBuffer(NativeDataView.java:1008)
	at jdk.nashorn.internal.objects.NativeDataView.setUint16(NativeDataView.java:711)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:670)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:389)
	at jdk.nashorn.internal.ir.CallNode.interpret(CallNode.java:389)
	at jdk.nashorn.internal.ir.ExpressionStatement.interpret(ExpressionStatement.java:102)
	at jdk.nashorn.internal.ir.Block.interpret(Block.java:439)
	at jdk.nashorn.internal.ir.FunctionNode.callInner(FunctionNode.java:1305)
	at jdk.nashorn.internal.ir.FunctionNode.call(FunctionNode.java:1329)
	at jdk.nashorn.internal.ir.FunctionNode.callDebug(FunctionNode.java:1336)
	at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:635)
	at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
	at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:389)
	at jdk.nashorn.internal.ir.CallNode.interpret(CallNode.java:389)
	at jdk.nashorn.tools.Shell.runScripts(Shell.java:378)
	at jdk.nashorn.tools.Shell.run(Shell.java:172)
	at jdk.nashorn.tools.Shell.main(Shell.java:136)