Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-487

Plugins executed through core APIs like ScaffoldPlugin do not use correct ClassLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.0.0.Final
    • Builtin Plugins, UI - Shell
    • None

      Executions of 3rd party plugins directly users correct ClassLoader from the plugin class itself.

      https://github.com/forge/core/blob/master/shell/src/main/java/org/jboss/forge/shell/command/Execution.java#L148

      But since the ScaffoldPlugin, which is built in, and directly invokes Facets from plugins, it is actually actually still invoking within the context of the ScaffoldPlugin's ClassLoader, not that of the Facet.

      We need a utility to more easily wrap invocations in the correct ClassLoader.

            kaers@redhat.com Koen Aers
            lincolnthree Lincoln Baxter III (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: