Bytecoder icon indicating copy to clipboard operation
Bytecoder copied to clipboard

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

Open xupwup opened this issue 1 year ago • 1 comments

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

xupwup avatar Apr 16 '24 06:04 xupwup

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

mirkosertic avatar May 15 '24 07:05 mirkosertic