Skip to content

Delete deprecated CatalystInstanceImpl and C++ counterparts#55789

Open
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D94548637
Open

Delete deprecated CatalystInstanceImpl and C++ counterparts#55789
mdvacca wants to merge 1 commit intofacebook:mainfrom
mdvacca:export-D94548637

Conversation

@mdvacca
Copy link
Contributor

@mdvacca mdvacca commented Feb 26, 2026

Summary:
Removes the deprecated CatalystInstanceImpl class (Java) and its C++ JNI
counterparts (CatalystInstanceImpl.h and CatalystInstanceImpl.cpp) as part
of the Legacy Architecture cleanup.

CatalystInstanceImpl was the bridge implementation for the old architecture.
Its sole consumer, ReactInstanceManager, is itself deprecated — its
constructor already throws UnsupportedOperationException. The
createReactContext method that instantiated CatalystInstanceImpl has been
stubbed to throw UnsupportedOperationException as well.

Changes:

  • Deleted CatalystInstanceImpl.java (621 lines)
  • Deleted CatalystInstanceImpl.h and CatalystInstanceImpl.cpp (523 lines)
  • Stubbed ReactInstanceManager.createReactContext to throw
  • Removed from BUCK and CMakeLists.txt build files
  • Removed from ReactAndroid.api public API surface
  • Removed from ReactNoNewJavaDetector Java allowlist
  • Removed from legacy architecture tracking script
  • Added direct #include <cxxreact/MessageQueueThread.h> to
    JavaModuleWrapper.cpp to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Differential Revision: D94548637

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 26, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 26, 2026

@mdvacca has exported this pull request. If you are a Meta employee, you can view the originating Diff in D94548637.

mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 27, 2026
…#55789)

Summary:

Removes the deprecated `CatalystInstanceImpl` class (Java) and its C++ JNI
counterparts (`CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp`) as part
of the Legacy Architecture cleanup.

`CatalystInstanceImpl` was the bridge implementation for the old architecture.
Its sole consumer, `ReactInstanceManager`, is itself deprecated — its
constructor already throws `UnsupportedOperationException`. The
`createReactContext` method that instantiated `CatalystInstanceImpl` has been
stubbed to throw `UnsupportedOperationException` as well.

Changes:
- Deleted `CatalystInstanceImpl.java` (621 lines)
- Deleted `CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp` (523 lines)
- Stubbed `ReactInstanceManager.createReactContext` to throw
- Removed from BUCK and CMakeLists.txt build files
- Removed from ReactAndroid.api public API surface
- Removed from ReactNoNewJavaDetector Java allowlist
- Removed from legacy architecture tracking script
- Added direct `#include <cxxreact/MessageQueueThread.h>` to
  `JavaModuleWrapper.cpp` to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Reviewed By: javache

Differential Revision: D94548637
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 27, 2026
…#55789)

Summary:
Pull Request resolved: facebook#55789

Removes the deprecated `CatalystInstanceImpl` class (Java) and its C++ JNI
counterparts (`CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp`) as part
of the Legacy Architecture cleanup.

`CatalystInstanceImpl` was the bridge implementation for the old architecture.
Its sole consumer, `ReactInstanceManager`, is itself deprecated — its
constructor already throws `UnsupportedOperationException`. The
`createReactContext` method that instantiated `CatalystInstanceImpl` has been
stubbed to throw `UnsupportedOperationException` as well.

Changes:
- Deleted `CatalystInstanceImpl.java` (621 lines)
- Deleted `CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp` (523 lines)
- Stubbed `ReactInstanceManager.createReactContext` to throw
- Removed from BUCK and CMakeLists.txt build files
- Removed from ReactAndroid.api public API surface
- Removed from ReactNoNewJavaDetector Java allowlist
- Removed from legacy architecture tracking script
- Added direct `#include <cxxreact/MessageQueueThread.h>` to
  `JavaModuleWrapper.cpp` to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Reviewed By: javache

Differential Revision: D94548637
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 27, 2026
…#55789)

Summary:

Removes the deprecated `CatalystInstanceImpl` class (Java) and its C++ JNI
counterparts (`CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp`) as part
of the Legacy Architecture cleanup.

`CatalystInstanceImpl` was the bridge implementation for the old architecture.
Its sole consumer, `ReactInstanceManager`, is itself deprecated — its
constructor already throws `UnsupportedOperationException`. The
`createReactContext` method that instantiated `CatalystInstanceImpl` has been
stubbed to throw `UnsupportedOperationException` as well.

Changes:
- Deleted `CatalystInstanceImpl.java` (621 lines)
- Deleted `CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp` (523 lines)
- Stubbed `ReactInstanceManager.createReactContext` to throw
- Removed from BUCK and CMakeLists.txt build files
- Removed from ReactAndroid.api public API surface
- Removed from ReactNoNewJavaDetector Java allowlist
- Removed from legacy architecture tracking script
- Added direct `#include <cxxreact/MessageQueueThread.h>` to
  `JavaModuleWrapper.cpp` to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Reviewed By: javache

Differential Revision: D94548637
mdvacca added a commit to mdvacca/react-native that referenced this pull request Feb 27, 2026
…#55789)

Summary:

Removes the deprecated `CatalystInstanceImpl` class (Java) and its C++ JNI
counterparts (`CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp`) as part
of the Legacy Architecture cleanup.

`CatalystInstanceImpl` was the bridge implementation for the old architecture.
Its sole consumer, `ReactInstanceManager`, is itself deprecated — its
constructor already throws `UnsupportedOperationException`. The
`createReactContext` method that instantiated `CatalystInstanceImpl` has been
stubbed to throw `UnsupportedOperationException` as well.

Changes:
- Deleted `CatalystInstanceImpl.java` (621 lines)
- Deleted `CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp` (523 lines)
- Stubbed `ReactInstanceManager.createReactContext` to throw
- Removed from BUCK and CMakeLists.txt build files
- Removed from ReactAndroid.api public API surface
- Removed from ReactNoNewJavaDetector Java allowlist
- Removed from legacy architecture tracking script
- Added direct `#include <cxxreact/MessageQueueThread.h>` to
  `JavaModuleWrapper.cpp` to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Reviewed By: javache

Differential Revision: D94548637
…#55789)

Summary:
Pull Request resolved: facebook#55789

Removes the deprecated `CatalystInstanceImpl` class (Java) and its C++ JNI
counterparts (`CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp`) as part
of the Legacy Architecture cleanup.

`CatalystInstanceImpl` was the bridge implementation for the old architecture.
Its sole consumer, `ReactInstanceManager`, is itself deprecated — its
constructor already throws `UnsupportedOperationException`. The
`createReactContext` method that instantiated `CatalystInstanceImpl` has been
stubbed to throw `UnsupportedOperationException` as well.

Changes:
- Deleted `CatalystInstanceImpl.java` (621 lines)
- Deleted `CatalystInstanceImpl.h` and `CatalystInstanceImpl.cpp` (523 lines)
- Stubbed `ReactInstanceManager.createReactContext` to throw
- Removed from BUCK and CMakeLists.txt build files
- Removed from ReactAndroid.api public API surface
- Removed from ReactNoNewJavaDetector Java allowlist
- Removed from legacy architecture tracking script
- Added direct `#include <cxxreact/MessageQueueThread.h>` to
  `JavaModuleWrapper.cpp` to replace transitive dependency

Changelog: [Android][Removed] - Remove deprecated CatalystInstanceImpl

Reviewed By: javache

Differential Revision: D94548637
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 meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants