Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16281

Unnecessary file system access in SimpleMetadataReaderFactory.getMetadataReader

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.3.6, 4.3.14
    • Fix Version/s: 4.3.14, 5.0.3
    • Component/s: Core
    • Labels:
      None

      Description

      Instead of eagerly checking the file exists with "if (!resource.exists())" perhaps move the logic into the metadata reader only attempt the rewrite if the access has failed with the passed in name?

      We can provide a patch if needed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              rexhoffman Rex Hoffman
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 37 weeks, 1 day ago