Skip to content

Do not attempt to call Class.forName in OSS#43816

Closed
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D55693479
Closed

Do not attempt to call Class.forName in OSS#43816
cortinico wants to merge 2 commits into
facebook:mainfrom
cortinico:export-D55693479

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:
We should not attempt to load generated classes by the Annotation processor in OSS because we simply don't run it, so those classes will fail to load. I'm short-circuiting the logic here.

This is sustainability work as we got a report for this in OSS a while ago and I never got the time to work on it.

Changelog:
[Internal] [Changed] - Do not attempt to call Class.forName in OSS

Differential Revision: D55693479

…tlin

Summary:
This moves a lot of classes from Java to Kotlin from the `package com.facebook.react.views.modal`

Changelog:
[Internal] [Changed] - Convert several classes inside `com.facebook.react.views.modal` to Kotlin

Differential Revision: D55692067
Summary:
We should not attempt to load generated classes by the Annotation processor in OSS because we simply don't run it, so those classes will fail to load. I'm short-circuiting the logic here.

This is sustainability work as we got a report for this in OSS a while ago and I never got the time to work on it.

Changelog:
[Internal] [Changed] - Do not attempt to call Class.forName in OSS

Differential Revision: D55693479
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Apr 3, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D55693479

@analysis-bot

Copy link
Copy Markdown
Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,910,458 +10
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 22,279,111 +4
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: e180072
Branch: main

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 4, 2024
@facebook-github-bot

Copy link
Copy Markdown
Contributor

This pull request has been merged in 26cc8cd.

@github-actions

github-actions Bot commented Apr 4, 2024

Copy link
Copy Markdown

This pull request was successfully merged by @cortinico in 26cc8cd.

When will my fix make it into a release? | How to file a pick request?

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

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants