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

CharSequence isEmpty method is missing #10091

Open
craigmit opened this issue Feb 2, 2025 · 2 comments · May be fixed by #10097
Open

CharSequence isEmpty method is missing #10091

craigmit opened this issue Feb 2, 2025 · 2 comments · May be fixed by #10097

Comments

@craigmit
Copy link

craigmit commented Feb 2, 2025

Java 15 introduced CharSequence#isEmpty(): https://docs.oracle.com/en/java/javase/15/docs/api/java.base/java/lang/CharSequence.html#isEmpty()

When trying to use it in GWT like this:

boolean empty = new StringBuilder().isEmpty();

The compiler throws the error:

The method isEmpty() is undefined for the type StringBuilder

I'm guessing it needs to be added to https://github.com/gwtproject/gwt/blob/main/user/super/com/google/gwt/emul/java/lang/CharSequence.java or something like that.

@zbynek
Copy link
Collaborator

zbynek commented Feb 2, 2025

List of other missing methods: #9872

@niloc132
Copy link
Member

niloc132 commented Feb 7, 2025

See also #9991

vjay82 pushed a commit to vjay82/gwt that referenced this issue Feb 19, 2025
@vjay82 vjay82 linked a pull request Feb 19, 2025 that will close this issue
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.

3 participants