konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C

Home Page:https://teavm.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deadlock when doing replace with empty string

xpenatan opened this issue · comments

commented

There is a bug that replacing empty string with empty text gives deadlock.
I found this because the desktop code have data in otherData while in teavm starts with empty otherData.
teavm version 0.10.1.

  String otherData = "";
  String data = "Data";
  String newData = data.replace(otherData, "");