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

Introduce a Scala-agnostic API for Reflect.#5183

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

Open
sjrd wants to merge2 commits intoscala-js:main
base:main
Choose a base branch
Loading
fromsjrd:reflect-java-api

Conversation

sjrd
Copy link
Member

@sjrdsjrd commentedMay 27, 2025
edited
Loading

The new API is offered as part of thejavalibintf. It only uses classes from the javalib, which makes it Scala-agnostic.

The old binary API used by the codegen calls the new (public) API in javalibintf. We deprecate them, but keep them for backward binary compatibility.

The public API ofscala.scalajs.reflect.Reflect is left untouched, and is still the recommended way to access the public features from user-land Scala code.

In the first commit, we do not change the compiler yet, to test that the deprecated methods are correct.

In the second commit, we change the compiler to use the new APIs.


Alternative to#5161.

sjrd added2 commitsMay 28, 2025 08:56
The new API is offered as part of the `javalibintf`. It onlyuses classes from the javalib, which makes it Scala-agnostic.The old binary API used by the codegen calls the new (public)API in javalibintf. We deprecate them, but keep them forbackward binary compatibility.The public API of `scala.scalajs.reflect.Reflect` is leftuntouched, and is still the recommended way to access thepublic features from user-land Scala code.In this commit, we do not change the compiler yet, to test that thedeprecated methods are correct.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gzm0gzm0Awaiting requested review from gzm0

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@sjrd

[8]ページ先頭

©2009-2025 Movatter.jp