Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

useIndexOutOfBoundsException constructor withInt#24764

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
hamzaremmal wants to merge3 commits intoscala:main
base:main
Choose a base branch
Loading
fromhamzaremmal:i23971

Conversation

@hamzaremmal
Copy link
Member

@hamzaremmalhamzaremmal commentedDec 16, 2025
edited
Loading

The idea of usingscala.runtime.Statics.ioobe was to reduce the size of the generated bytecode.
In this PR, we instead use the JDK9+ constructor ofIndexOutOfBoundsException.
In the generated code,checkcast mentioned inscala/scala#7086 (comment) is also not present making the generated code more efficient than what it looked like in Scala 2.

One question remains, should we deprecatescala.runtime.Statics.ioobe?I believe we should I did deprecate it.

publicstaticfinal <T>Tioobe(intn)throwsIndexOutOfBoundsException {

Closes#23971

@hamzaremmalhamzaremmal added this to the3.10.0 milestoneDec 16, 2025
@hamzaremmal
Copy link
MemberAuthor

Requires Scala.js 1.20.2 when released.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.10.0

Development

Successfully merging this pull request may close these issues.

usescala.runtime.Statics.ioobe. forward port of Scala 2 #7086

1 participant

@hamzaremmal

[8]ページ先頭

©2009-2025 Movatter.jp