This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 253597 - [81cat] Groovy autocompletion inserts unnecessary imports (when import package.* exists).
Summary: [81cat] Groovy autocompletion inserts unnecessary imports (when import packag...
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Other
: P3 normal (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 03:52 UTC by kosmonaffft
Modified: 2015-07-21 03:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Before completion. (91.64 KB, image/png)
2015-07-21 03:52 UTC, kosmonaffft
Details
After completion. (92.99 KB, image/png)
2015-07-21 03:53 UTC, kosmonaffft
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kosmonaffft 2015-07-21 03:52:50 UTC
Created attachment 154747 [details]
Before completion.

Before completion:

package info.kosmonaffft.fffapp.entity

import javax.persistence.*

@Table('USERS')
class User {

    @Col <-- Cursor is here.
    Long id
}


After completion:

package info.kosmonaffft.fffapp.entity

import javax.persistence.*
import javax.persistence.Column

@Table('USERS')
class User {

    @Column
    Long id
}

See screenshots for details.
Comment 1 kosmonaffft 2015-07-21 03:53:04 UTC
Created attachment 154748 [details]
After completion.
Comment 2 kosmonaffft 2015-07-21 03:54:02 UTC
Expected behavior:

don't insert any additional imports from foo.bar if 'import foo.bar.*' is present.