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 - [cc] Methods from static import aren't shown in code completion
Summary: [cc] Methods from static import aren't shown in code completion
Status: NEW
Alias: None
Product: groovy
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Martin Janicek
URL:
Keywords:
Depends on:
Blocks: 151985
  Show dependency tree
 
Reported: 2012-08-21 11:53 UTC by Martin Janicek
Modified: 2012-09-05 15:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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