8000 Don't use Java reflection for ScalaJS / Native by kyri-petrou · Pull Request #8841 · zio/zio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Don't use Java reflection for ScalaJS / Native #8841

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

Merged
merged 1 commit into from
May 11, 2024

Conversation

kyri-petrou
Copy link
Contributor

A previous PR (#8614) broke zio-test_2.12 for ScalaJS & Native due to usage of Java reflection.

This PR implements a platform-specific productFields method, where in ScalaJS and Scala Native it returns an iterator of empty strings.

This is OK because the next line in the code handles empty strings explicitely:

val newParamName = if (paramName.nonEmpty) s".$paramName" else ""

See Discord chat for more info: https://discord.com/channels/629491597070827530/629491597070827534/1238126111490048094

@ghostdogpr ghostdogpr merged commit 6bc6ae0 into zio:series/2.x May 11, 2024
@kyri-petrou kyri-petrou deleted the fix-scalajs-212-test branch May 11, 2024 08:17
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 this pull request may close these issues.

3 participants
0