Skip to content

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

@xupwup

Description

@xupwup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions