Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7601

ClasspathResourcesUtil refactoring

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Done
    • Neutral
    • 6.2.13
    • None
    • None
    • None

    Description

      ClasspathResourcesUtil may not collect the expected resources on Java 9+.
      This issue may affect execution of tests, where the bootstrap files are not detected properly, and need to be added manually to the tests.

      Since JDK9, the system class loaders are no longer URLClassLoaders. This becomes a problem when running tests or scripts standalone on Java 11 for example (either from Maven or from IntelliJ). It is not a problem at Magnolia runtime because there we are under Tomcat's WebappClassLoader (or similar for others) which still is a URLClassLoader.

      Fix should be along the lines of tokenizing the classpath and producing URLs out of that, no unsafe reflection involved.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mduerig Michael Duerig
                miruela Mercedes Iruela
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD