Spring Tool Suite
  1. Spring Tool Suite
  2. STS-2026

Grails aware type rename refactoring doesn't replace controller references in serveral places

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.8.0.M1
    • Fix Version/s: None
    • Component/s: GRAILS

      Description

      Grails aware rename type refactoring mostly takes care of renaming related types correctly.

      However, it is not taking into account references to controllers in the following places:

      • <g:link controller="..." ...> (and other g"link variations).
      • url mappings
      • in SQL: Old.executeUpdate("update Old e set ...") will become New.executeUpdate("update Old e set ...") <-- the 'Old' in executeUpdate stays the same
      • Also, it might be insteresting to update @link values in JavaDoc comments: /** @link myproj.Old / should become / @link myproj.New **/

      DONE:

      • redirect(controller: "...") (and other redirect variations in controller classes)

        Activity

        Show
        Kris De Volder (c) added a comment - See also https://issuetracker.springsource.com/browse/STS-2105
        Hide
        Kris De Volder (c) added a comment -

        Reducing priority, most important sub-issues taken care off. (Willing to reconsider the priority of this issue if votes received on sub-issue).

        Show
        Kris De Volder (c) added a comment - Reducing priority, most important sub-issues taken care off. (Willing to reconsider the priority of this issue if votes received on sub-issue).

          People

          • Assignee:
            Kris De Volder (c)
            Reporter:
            Kris De Volder (c)
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: