GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-1347

Argument names missing in method declaration when using code assist to implement missing methods

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1.M1
    • Fix Version/s: 2.6.1.Release
    • Component/s: Editor
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Create a Groovy project and write the following interface:

      package test;
      
      public interface I
      {
      	void myMethod(String a, int b);
      }
      

      Then create a new Groovy class with the following contents:

      package test
      
      class A implements I {
        |	
      }
      

      Move the cursor to "|" and hit ctrl+space. Choose to override myMethod method in I. What I see is this:

      package test
      
      class A implements I {
      	void myMethod(String arg0, int arg1) {
      		// TODO Groovy Auto-generated method stub
      		// Only partially implemented. Perform organize imports
      		// to properly import parameter and return types
      	}
      }
      

      What I would expect is this:

      package test
      
      class A implements I {
      	void myMethod(String a, int b) {
      		// TODO Groovy Auto-generated method stub
      		// Only partially implemented. Perform organize imports
      		// to properly import parameter and return types
      	}
      }
      

        Activity

        Andrew Eisenberg made changes -
        Field Original Value New Value
        Assignee Andrew Eisenberg [ werdna ]
        Andrew Eisenberg made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.6.1.Release [ 18147 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Andrew Eisenberg
            Reporter:
            Mauro Molinari
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: