{"record":{"id":"b36a6f5b2aa863de","repo":"oracle/graal","slug":"expected-an-espresso-instance-type-as-accessing-cl","errorCode":null,"errorMessage":"Expected an espresso instance type as accessing class","messagePattern":"Expected an espresso instance type as accessing class","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":897,"sourceCode":"    private static Value lookupMetaObject(Context context, String name) {\n        Value result = context.getBindings(\"java\").getMember(name);\n        JVMCIError.guarantee(result == null || result.isMetaObject(), \"Unexpected result: %s\", result);\n        return result;\n    }\n\n    Value lookupMetaObject(String name) {\n        return lookupMetaObject(context, name);\n    }\n\n    Value requireMetaObject(String name) {\n        return requireMetaObject(context, name);\n    }\n\n    JavaType lookupType(String name, ResolvedJavaType accessingClass, boolean resolve) {\n        Objects.requireNonNull(accessingClass);\n        Objects.requireNonNull(name);\n        if (!(accessingClass instanceof EspressoExternalResolvedInstanceType accessingInstantType)) {\n            throw new IllegalArgumentException(\"Expected an espresso instance type as accessing class\");\n        }\n        return lookupType(name, accessingInstantType, resolve);\n    }\n\n    EspressoExternalResolvedInstanceType getJavaLangObject() {\n        return java_lang_Object;\n    }\n\n    EspressoExternalResolvedInstanceType[] getArrayInterfaces() {\n        return arrayInterfaces;\n    }\n\n    JavaType lookupType(String name, EspressoExternalResolvedInstanceType accessingClass, boolean resolve) {\n        JVMCIError.guarantee(!name.isEmpty(), \"Name must not be empty\");\n        if (name.charAt(0) == '[') {\n            int dims = 0;\n            do {\n                dims++;","sourceCodeStart":879,"sourceCodeEnd":915,"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#L879-L915","documentation":"Error \"Expected an espresso instance type as accessing class\" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java:897 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Expected an espresso instance type as accessing class","solutions":["Fix the condition reported by the error: Expected an espresso instance type as accessing class","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: Expected an espresso instance type as accessing class","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"}