{"record":{"id":"cf19445d1b7989d7","repo":"oracle/graal","slug":"unsupported-kind-cf1944","errorCode":null,"errorMessage":"Unsupported kind: ","messagePattern":"Unsupported kind: ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java","lineNumber":1067,"sourceCode":"        if (!(arrayType.isArray() && arrayType.getComponentType().isPrimitive())) {\n            throw new IllegalArgumentException(\"Source should be a primitive array, got \" + arrayType);\n        }\n        Value value = objectConstant.getValue();\n        long byteLength = value.getBufferSize();\n        int bytesToRead = kind.getByteCount();\n        if (offset < 0 || (long) offset + bytesToRead > byteLength) {\n            throw new IllegalArgumentException(\"Invalid input range: \" + offset + \"..\" + (offset + bytesToRead) + \" for buffer size \" + byteLength);\n        }\n        return switch (kind) {\n            case Boolean -> JavaConstant.forBoolean(value.readBufferByte(offset) != 0);\n            case Byte -> JavaConstant.forByte(value.readBufferByte(offset));\n            case Short -> JavaConstant.forShort(value.readBufferShort(ByteOrder.nativeOrder(), offset));\n            case Char -> JavaConstant.forChar((char) value.readBufferShort(ByteOrder.nativeOrder(), offset));\n            case Int -> JavaConstant.forInt(value.readBufferInt(ByteOrder.nativeOrder(), offset));\n            case Long -> JavaConstant.forLong(value.readBufferLong(ByteOrder.nativeOrder(), offset));\n            case Float -> JavaConstant.forFloat(value.readBufferFloat(ByteOrder.nativeOrder(), offset));\n            case Double -> JavaConstant.forDouble(value.readBufferDouble(ByteOrder.nativeOrder(), offset));\n            default -> throw new IllegalArgumentException(\"Unsupported kind: \" + kind);\n        };\n    }\n\n    @Override\n    public JavaConstant createHostProxy(Object hostTarget, ResolvedJavaType guestType) {\n        Objects.requireNonNull(hostTarget);\n        if (!(Objects.requireNonNull(guestType) instanceof EspressoExternalResolvedInstanceType espressoGuestType) || !espressoGuestType.isInterface()) {\n            throw new IllegalArgumentException(\"Invalid guest type\");\n        }\n        Value hostProxy = hostProxies.createHostProxy(hostTarget, espressoGuestType);\n        return new EspressoExternalObjectConstant(this, hostProxy);\n    }\n\n    @Override\n    public Throwable unwrapHostProxyException(JavaConstant guestWrapper) {\n        Objects.requireNonNull(guestWrapper);\n        if (!(guestWrapper instanceof EspressoExternalObjectConstant espressoWrapper)) {\n            return null;","sourceCodeStart":1049,"sourceCodeEnd":1085,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java#L1049-L1085","documentation":"Error \"Unsupported kind: \" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java:1067 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Unsupported kind:","solutions":["Fix the condition reported by the error: Unsupported kind:","Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: Unsupported kind:","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}