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

String.replace not supported #921

Open
nbrugger-tgm opened this issue May 31, 2023 · 0 comments
Open

String.replace not supported #921

nbrugger-tgm opened this issue May 31, 2023 · 0 comments
Labels

Comments

@nbrugger-tgm
Copy link
Contributor

nbrugger-tgm commented May 31, 2023

String.replace (as well as all overloads) are widely used and should be supported

Caused by: java.lang.IllegalStateException: No such method : java/lang/String.replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

I assume that a "native" transpilation is missing?

If you point me to how to do such "stubs" please point me to it and i will open a PR

Edit: I have seen that the stubs/translations are in runtime.js and the java natives in "classlib". Would it be correct to:

  1. Copy the signatures from java.lang.String into TString and mark them native
  2. Create an implementation is runtime.js

Is there any other stuff needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants