Skip to content

class-model: fix getApi() import#382

Merged
oleavr merged 1 commit intofrida:mainfrom
glass-panel:main
Mar 17, 2026
Merged

class-model: fix getApi() import#382
oleavr merged 1 commit intofrida:mainfrom
glass-panel:main

Conversation

@glass-panel
Copy link
Copy Markdown
Contributor

It appears that the getApi function in lib/class-model.js was not correctly imported.

import { withRunnableArtThread, getArtClassSpec, getArtMethodSpec, getArtFieldSpec, getApi } from './android.js';

This caused related C modules to incorrectly look up libraries and symbols from the ART environment instead of the JVM environment during compilation.

This mismatch leads to failures in many methods like Java.use, resulting in errors such as:

  • TypeError: Cannot read properties of null (reading 'jvmti')
  • Error: unable to find module 'libc.so' Issue #372

@oleavr
Copy link
Copy Markdown
Member

oleavr commented Mar 17, 2026

Thanks, great catch! 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants