Skip to content

ClassPathResource-related FileNotFoundExceptions do not contain fully-qualified resource paths when using class literal convenience constructor [SPR-6888] #11554

@spring-projects-issues

Description

@spring-projects-issues

Chris Beams opened SPR-6888 and commented

ClassPathResource resource = new ClassPathResource("notexist", ClassInSomePackage.class);
resource.getInputStream();

The FNFE that results from getInputStream() above will contain only 'notexist' in the path, where the fully-qualified path would be expected.


Affects: 3.0.1

Issue Links:

Referenced from: commits 5e19f29

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions