Uploaded image for project: 'Spring Tool Suite'
  1. Spring Tool Suite
  2. STS-2773

Shift + Ctrl + O (Source/Organize Imports) on package level messes up imports for groovy-files

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.2.RELEASE
    • Fix Version/s: 3.0.0.RC1
    • Component/s: GRAILS
    • Labels:
    • Environment:
      kubuntu 10.04.4 LTS, STS Version: 2.9.2.RELEASE
      Build Id: 201205071000, grails 2.0.1, jvm 1.7.0.5

      Description

      When performing Shift + Ctrl + O on a package level all sort of imports get lost and useless ones like java.util.Date; or java.math.BigDecimal; is added (with a semicolon to the end). E.g. in my case imports for AST Tranformations (like import groovy.transform.EqualsAndHashCode) and even references to other groovy-classes were removed from my domain classes.

        Attachments

          Activity

            People

            Assignee:
            aeisenberg Andrew Eisenberg
            Reporter:
            kosta Konstantinos Kostarellis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: