Skip to content

Packages imported from other ClassLoaders are not visible #126

@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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @rcd47

        Issue actions

          Packages imported from other ClassLoaders are not visible · Issue #126 · codehaus-plexus/plexus-classworlds