GRECLIPSE
  1. GRECLIPSE
  2. GRECLIPSE-642

Groovy plugin may break JDT rename feature completely

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.0Release
    • Fix Version/s: 2.0.2Release
    • Component/s: Refactoring
    • Labels:
      None
    • Number of attachments :
      0

      Description

      This issue was initially reported as this Eclipse bug:

      bug 299746: java.lang.ClassCastException in secondary types removal
      https://bugs.eclipse.org/bugs/show_bug.cgi?id=299746

      There is already some analysis on this bug which I do not want to repeat here.
      At the moment it is not clear whether this issue is caused by Eclipse or the Groovy plugin so any help
      from the Groovy team would be much appreciated.

      It seems that there are issues which secondary types in Groovy files. At the moment, there is no small test case, just a scenario I run on my computer locally:

      1. With Groovy files and Groovy plugin installed --> rename --> error
      2. Un-install Groovy plugin --> rename --> error
      3. New workspace, import existing projects --> rename --> WORKS!!
      4. Back to previous workspace (which is rebuilt) --> rename --> ERROR!!!

      On the other hand, if I delete the folder containing the Groovy code without de-installing the Groovy plugin, rename refactoring starts working again.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Andrew Eisenberg
              Reporter:
              Jörg Thönnes
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: