Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a checkcast instruction to placate java verifier #121

Merged
merged 2 commits into from
Jul 22, 2024

Conversation

donaldsonjw
Copy link
Contributor

recent updates to the jvm verifier have made it stricter than before, requiring the addition of (checkcast pair) in main before calling bigloo_main.

recent updates to the jvm verifier have made it stricter than before,
requiring the addition of (checkcast pair) in main before calling
bigloo_main.
The compiler treats the class type of Object and is expect foreign to
implement BGL_AS_CLASS as:
        Object BGL_AS_CLASS(Object o)
not:
        bclass BGL_AS_CLASS(Object o)

Without this correction, the jvm complains that it cannot find
BGL_AS_CLASS.
@manuel-serrano
Copy link
Owner

Interesting. We are currently working on a wasm backend and we noticed that some type casts were missing and some that some expressions were not correctly typed. Fixing those might have trigger the new JVM errors. Anyway, thanks for the fixes.

@manuel-serrano manuel-serrano merged commit fa3fe33 into manuel-serrano:master Jul 22, 2024
1 check passed
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