Skip to content

Misplaced "break" in MimetypesFileTypeMap #204

@plesingr-aeb

Description

@plesingr-aeb

Describe the bug
Multiple mime.types files on classpath are not loaded.

To Reproduce
Steps to reproduce the behavior:

  1. Add several projects/libs with different META-INF/mime.types
  2. Run some code that iniatializes the mappings (e.g. FileTypeMap.getDefaultFileTypeMap())
  3. Check that all mappings are present.

Expected behavior
All mappings should be present

Desktop (please complete the following information):

  • OS: Windows 11

Additional context
I believe that the break at line 251 is misplaced. It should be contained within the if (urls != null) (or not present at all) but it is unconditionally executed after the first name in the loop is handled.

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