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

Unable to compile test program with error: Cannot find Wasm local for variable de.mirkosertic.bytecoder.core.ir.PHI@2d87ac2b #1010

Open
xupwup opened this issue Apr 16, 2024 · 1 comment

Comments

@xupwup
Copy link

xupwup commented Apr 16, 2024

Hi,

I'm looking into using Bytecoder to run some existing java code in the browser. That code uses threads, exceptions, and wants to load resources via class.getResourceAsStream(). I don't know how to let Bytecoder know how to load resources, so that'll probably fail. But It already fails to compile at the first catch statement. It also generates invalid javascript when trying to append a single quote to a string.

Am I simply doing something wrong? That's quite possible because I'm using gradle to build the project via bytecoder-cli, which may be a bit unusual.

Anyway, I've attached my test project. I hope this can be solved easily, because Bytecoder looks very promising.

VikingWebVisualisation.zip
index.html.zip

@mirkosertic
Copy link
Owner

Hi! Thank you for reporting this issue! Would you like to test the bug with the lastest release? Is it still there?

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

No branches or pull requests

2 participants