Skip to content

Class cast exception with jdk.internal.loader.ClassLoaders$AppClassLoader #54

Description

@dubinsky

I am doing new org.xmlresolver.XMLResolverConfiguration() in xmlresolver v3.0.2; eventually, it gets to this line in XMLResolverConfiguration:
for (URL url : ((URLClassLoader) XMLResolverConfiguration.class.getClassLoader())...)...,
which assumes that the class-loader can be cast to URLClassLoader, but in my case it is jdk.internal.loader.ClassLoaders$AppClassLoader, so I get ClassCastException...

Please advise :)

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

      Issue actions