Current VMBridge
is not suitable for modular JDKs
#1076
Labels
Java Compatibility
Issues related to Rhino being compatible to (new) Java releases
VMBridge
allows some customization by trying to load aorg.mozilla.javascript.VMBridge_custom
, however due to modularity access rules such a class would not be allowed to load in modular JDKs. ThenVMBridge_jdk18
is loaded, but that class is not 100% suitable for modular JDKs (for example it handles proxy objects in a pre-modular way which could lead to failures).As a subset of what is currently done in PR #1072, a few changes could be made to
VMBridge
, respecting the current API signature but changing the way that it is loaded:VMBridge_custom
would be located atorg.mozilla.javascript.bridge
which could be provided by a different module.VMBridge_jdk11
which inherits from a newVMBridge_jdk8
(keeping aVMBridge_jdk18
would be confusing) and uses the modular API.I could modify #1072 to provide the above changes (and leave the protected access changes for a later PR).
The text was updated successfully, but these errors were encountered: