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

namespace circular reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 12.1
    • None
    • php - Editor
    • None
    • Important

    Description

      namespace circular reference

       

      class in sub namespace extending same named class is confusing netbeans, for better illustration see printscreen

       

      must be specific setup:
      parent namespace name is same as last component of subclass namespace and both classes must be same name

      ie:
      parent namespace: \Na
      subclass namespace: \Sub\Na
      both class names: Ca

      how I came to it:

      this setup made netbeans to freeze for very long time when autocomplete  inserting function name

      the main window responding to resize etc..., OS fine, not issues, just all netbeans memory used and all processor cores near to 99% usage

      log yells "out of heap memory", also it shows repeating call to resolving function name overrides until it fails on "out of heap memory"

      sorry no logs, no dump

      attaching screenshot and netbeans project isolating this issue

       

      Attachments

        1. upload-1604836570-1.img.png
          114 kB
          Daniel Peder
        2. bug-namespace-circular-reference.tar
          10 kB
          Daniel Peder
        3. DeepinScreenshot_select-area_20201108133734.png
          147 kB
          Daniel Peder

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dan-peder Daniel Peder
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: