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 217157

Summary: [cc] Methods from static import aren't shown in code completion
Product: groovy Reporter: Martin Janicek <mjanicek>
Component: EditorAssignee: Martin Janicek <mjanicek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 151985    

Description Martin Janicek 2012-08-21 11:53:47 UTC
Steps to reproduce:1. Create Java application2. Create new Groovy classimport static java.lang.Math.*class GroovyClass {	    public static void main(String[] args) {        ab^        print(abs(0.1))    }}..if we try to use code completion on the ^ location, no method is shown. But it is possible to run line
Comment 1 Martin Janicek 2012-09-05 14:06:56 UTC
Steps to reproduce:
1. Create Java application
2. Create new Groovy class

import static java.lang.Math.*
class GroovyClass {        
    public static void
        main(String[] args) {
            ab^        
            print(abs(0.1))
    }
}

..if we try to use code completion on the ^ location, no method is shown. But it is possible to run line "print(abs(0.1))", so the method is available in the current context