The JSR-223 Rexx interpreter instance should aggregate all packages of all consecutively executed Rexx programs. This would allow for making available all public classes and public routines to any Rexx code that gets executed via the same Rexx interpreter instance.
If a coder would not want that aggregation, there are two possibilities available:
- execute any Rexx code always via a new instance of the JSR-223 Rexx interpreter
- use the BSF-APIs (BSF Rexx engine) to execute Rexx code as the BSF implementation would not remember the package information of the executed Rexx code