Skip to content

Packages imported from other ClassLoaders are not visible #126

Open
@rcd47

Description

@rcd47

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions