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 :-(') } }
Activity
Andrew Eisenberg
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Andrew Eisenberg [ werdna ] | |
| Fix Version/s | 2.1.1Release [ 16772 ] | |
| Priority | Major [ 3 ] | Critical [ 2 ] |
Andrew Eisenberg
made changes -
| Affects Version/s | 2.1.1RC1 [ 17002 ] | |
| Affects Version/s | 2.1.1Release [ 16772 ] |
Andrew Eisenberg
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Fixed [ 1 ] |
Must be related to some of the new organize import support.