Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.1.1RC1
-
Fix Version/s: 2.1.1Release
-
Component/s: Editor
-
Labels:None
-
Environment:Groovy-Eclipse plugin
Version: 2.1.1.xx-20101209-2200-e36
Groovy version: org.codehaus.groovy
-
Number of attachments :
Description
When I press CTRL+SHIFT+O the 1st time, line 1 ("package some.pckg.structure") is removed.
When I press CTRL+SHIFT+O the 2nd time, line 3 ("import static java.lang.String.*") is removed.
This problem also occurs if the println statement is used in a script without any class.
package some.pckg.structure import static java.lang.String.* class OrganizeImports { public static void main(String[] args) { println format('!!! %s !!!', 'bug :-(') } }
Must be related to some of the new organize import support.