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

Refactoring of class member names in Java

    XMLWordPrintableJSON

Details

    Description

      Class member name refactoring does not work under this specific condition:

      class X {
        int i;
      }
      
      X x = new X();
      String newName = Integer.toString(x.i);
      

      If you try to refactor name of the member x.i to the name of the variable on the left side (called newName), you get the following result:

      String newName = Integer.toString(x.X.this.newName);
      

      Attachments

        Issue Links

          Activity

            People

              jherkel Jakub Herkel
              miksikp Petr Miksik
              Votes:
              0 Vote for this issue
              Watchers:
              2 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