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

[Bug] Jump labels contain invalid - #927

Closed
nbrugger-tgm opened this issue Jun 1, 2023 · 1 comment · Fixed by #929
Closed

[Bug] Jump labels contain invalid - #927

nbrugger-tgm opened this issue Jun 1, 2023 · 1 comment · Fixed by #929

Comments

@nbrugger-tgm
Copy link
Contributor

when code generates gotos and the compiler is forced to emulate using a while loop the label for the loop contains a - which is not valid in javascript.

phi7 = var1;
    phi8 = (var2) | 0;
    phi9 = (var3) | 0;
    phi10 = (var4) | 0;
    L-179391256: while(true) {
     var11 = (phi10) | 0;
     var12 = (phi6) | 0;
     if (var11 >= var12) {
      // line number 35

i would say label.replace("-","") should do the trick.

In case you are interested where this appears:
I$partition$$Ljava$lang$Object$$I$I$Ljava$util$Comparator$ This is probably an incompatability that does not exist in java8
// source file is Quicksort.java

@nbrugger-tgm
Copy link
Contributor Author

This seems to be dependant on the Java, maven or gradle Version - I belive I ran it with 17 and maybe 20 but the vendor might make a difference too. The error did not occurred on the github actions step so there is no way for me to create a test that could test a regressuon

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 a pull request may close this issue.

1 participant