[lworld] getResourceAsStream() doesn't work in preview mode for exploded images

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • repo-valhalla
    • Affects Version/s: repo-valhalla
    • Component/s: tools
    • Fix Understood

      As well as ExplodedImage (which feeds into JRT file-system) there is another mechanism by which module resources are read. This is ExplodedModuleReader in ModuleReferences.

      To support preview mode, the module reader must preferentially locate classes/resources in the META-INF/preview directory (if it exists).

      Unlike JRT file system, this mechanism:
      * Doesn't need to look like a file system (no directory structure)
      * Must use file:/ URIs (unable to use jrt:/ URIs)

      Exploded modules are used in multiple ways (no only for system modules) so care must be taken to restrict preview mode semantics to system modules only.

            Assignee:
            David Beaumont
            Reporter:
            David Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: