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

Summary: [81cat] Groovy autocompletion inserts unnecessary imports (when import package.* exists).
Product: groovy Reporter: kosmonaffft
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Other   
Issue Type: DEFECT Exception Reporter:
Attachments: Before completion.
After completion.

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.