plexus-classworlds icon indicating copy to clipboard operation
plexus-classworlds copied to clipboard

Packages imported from other ClassLoaders are not visible

Open rcd47 opened this issue 5 months ago • 0 comments

ClassRealm does not override getPackage() or getPackages(), so Package#getPackage() and Package#getPackages() do not return packages that are imported from other ClassLoaders.

I discovered this because it breaks Apache JEXL's import pragma. As you can see here, it tries to verify that the package exists. That fails, so the import is ignored.

rcd47 avatar Jun 08 '25 15:06 rcd47