Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ADD: NativeArray.subList() #901

Merged
merged 4 commits into from
May 26, 2021

Conversation

rPraml
Copy link
Contributor

@rPraml rPraml commented May 20, 2021

This adds the missing NativeArray.subList() functionality

throw new IllegalStateException();
}
final int len = (int) longLen;
final int len = size();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we have this pattern at more places, maybe we can remove the duplicated code at all places

toArray()
indexOf()
lastIndexOf()

And maybe we can add some text to the illegal state exception thrown in the size() method.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: e6ba640

@gbrail
Copy link
Collaborator

gbrail commented May 20, 2021

Can you address the comment from @rbri ? Other than that this seems fine, but I don't know enough about the guts of NativeArray to understand what this enables.

@rPraml
Copy link
Contributor Author

rPraml commented May 26, 2021

@gbrail can you take a look at this PR again? In my humble oppinion, all mentioned points should be solved now.

@gbrail
Copy link
Collaborator

gbrail commented May 26, 2021

Yes, this looks good. Thanks for working on it!

@gbrail gbrail merged commit 55d8d8c into mozilla:master May 26, 2021
@p-bakker p-bakker added this to the Release 1.7.14 milestone Oct 13, 2021
@p-bakker p-bakker added feature Issues considered a new feature Java Interop Issues related to the interaction between Java and JavaScript labels Oct 13, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
feature Issues considered a new feature Java Interop Issues related to the interaction between Java and JavaScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants