Skip to content

Usage of ClassLoader.loadClass() in ConfigurationClassParser [SPR-17253] #21786

Closed

Description

@spring-projects-issues

Dave Syer opened SPR-17253 and commented

In ConfigurationClassParser we explicitly call ClassLoader.loadClass() which is a bit odd, given that we have ClassUtils to do that work for us, and that is the "normal" pattern in Spring internally. It wouldn't affect any regular apps if we refactored to use ClassUtils (I tried it and the tests all pass). It would affect AOT native images in a positive way: the ClassLoader is null in that case, but Class.forName() actually works.


Affects: 5.0.8

Issue Links:

Referenced from: commits ad54472, c803ad7

Activity

  1. added
    type: enhancement
    in: core
    on Jan 11, 2019
  2. added this to the 5.0.9 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions