Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-1147

Enabling fragment has to enable host bundle first

    XMLWordPrintableJSON

Details

    Description

      While working on PR-715 it turned out that enabling nbjavac sooner than its API leads to:

      ClassNotFoundException: Will not load class com.sun.source.tree.Tree arbitrarily from one of [org.netbeans.libs.javacapi] and [org.netbeans.modules.nbjavac.api]
      

      This is a result of enabling the fragment first and host later. That is strange situation - the fragment should have a dependency on the host, right?

      This is the hotfix: https://github.com/apache/incubator-netbeans/pull/715/commits/ac944a13f57816970556b0b8e2e3971ea94bb3e5 but proper fix with a test in o.n.bootstrap is needed.

      Attachments

        Issue Links

          Activity

            People

              sdedic Svatopluk Dedic
              jtulach Jaroslav Tulach
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h