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

'fallback' project without trust can turn to 'evaluated'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • projects - Gradle
    • None

    Description

       

      During prototyping, I've encountered a strange thing:

       

              NbGradleProjectImpl prjImpl = prj.getLookup().lookup(NbGradleProjectImpl.class);
              assertTrue(prjImpl.getGradleProject().getQuality().worseThan(NbGradleProject.Quality.EVALUATED));
              // attempt to load everything
              prjImpl.setAimedQuality(NbGradleProject.Quality.FULL);
              // ... it loaded, but did not escalate the quality bcs not trusted
              assertTrue(prjImpl.getGradleProject().getQuality().worseThan(NbGradleProject.Quality.EVALUATED));
      
      

      I expected (the assert at the end) that a fallback project won't change as it's not permitted to execute gradle for it. But it turned to evaluated (no gradle was executed, in fact).

      I consider that a bug - is it ? If so, pls. reassign to me, will fix it in my implementation & make PR.

      Attachments

        Activity

          People

            lkishalmi Laszlo Kishalmi
            sdedic Svatopluk Dedic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: