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

Code completion doesn't offer methods from the same class

    XMLWordPrintableJSON

Details

    Description

      There is a simple groovy class:

       

      class NoCCTest {
          private String method1() {
              return "Ahoj"
          }
              
          private void method2() {
              String a = meth|od1()
          }
      } 

      Char `|` indicates curret position. When you invoke code completion at this position, there are no suggestions.  See the picture

      When you write `this.` before method name, then the cc is resolved correctly:

       

      Attachments

        1. NoCC1.png
          94 kB
          Petr Pisl
        2. nocc.png
          97 kB
          Petr Pisl

        Issue Links

          Activity

            People

              ppisl Petr Pisl
              ppisl Petr Pisl
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m