{"record":{"id":"e97d7e3645f76d1c","repo":"oracle/graal","slug":"not-a-primitive-kind","errorCode":null,"errorMessage":"Not a primitive kind: ","messagePattern":"Not a primitive 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":956,"sourceCode":"        JVMCIError.guarantee(name.charAt(0) == 'L' && name.charAt(name.length() - 1) == ';', \"Invalid type: \" + name);\n        Value meta = invokeJVMCIHelper(\"lookupInstanceType\", name, accessingClass.getMetaObject(), resolve);\n        if (meta.isNull()) {\n            if (resolve) {\n                /*\n                 * lookupInstanceType should throw for unresolved symbols when resolve is true. It\n                 * can currently return null for symbols unknown to Espresso; see GR-76549 for fixing\n                 * that in the guest helper.\n                 */\n                throw new LinkageError(\"Could not resolve type \" + name);\n            }\n            return UnresolvedJavaType.create(name);\n        }\n        return new EspressoExternalResolvedInstanceType(this, meta);\n    }\n\n    EspressoExternalResolvedPrimitiveType forPrimitiveKind(JavaKind kind) {\n        if (!kind.isPrimitive()) {\n            throw new IllegalArgumentException(\"Not a primitive kind: \" + kind);\n        }\n        return forPrimitiveBasicType(kind.getBasicType());\n    }\n\n    private EspressoExternalResolvedPrimitiveType forPrimitiveBasicType(int basicType) {\n        if (primitives[basicType] == null) {\n            throw new IllegalArgumentException(\"No primitive type for basic type \" + basicType);\n        }\n        return primitives[basicType];\n    }\n\n    Value invokeJVMCIHelper(String method, Object... args) {\n        try {\n            return jvmciHelper.invokeMember(method, args);\n        } catch (PolyglotException e) {\n            throw throwHostException(e);\n        }\n    }","sourceCodeStart":938,"sourceCodeEnd":974,"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#L938-L974","documentation":"Error \"Not a primitive 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:956 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Not a primitive kind:","solutions":["Fix the condition reported by the error: Not a primitive 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: Not a primitive 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"}