Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8066119

Missing resource type.error.not.an.arraybuffer

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b42
    • CPU:
      generic
    • OS:
      generic

      Backports

        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)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lagergren Marcus Lagergren
                  Reporter:
                  lagergren Marcus Lagergren
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: