Skip to content

XtextResourceSet.getResource keeps creating resources, because they are never placed in the resource map. #3591

@JoeryDev

Description

@JoeryDev

XtextResourceSet.getResource(URI uri, boolean loadOnDemand) overrides ResourceSet.getResource(URI, boolean), presumably because of the 'URI normalization' which I think was added because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=399771.
Contrary to ResourceSet.getResource though, XtextResourceSet.getResource never places the result of demandLoadHelper in the map obtained from getURIResourceMap(). As a consequence, the Resource can never be obtained from the map, so demandLoadHelper keeps getting called.

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