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 217159

Summary: [cc] Packages without any Java class are not shown in the import 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 12:01:11 UTC
Steps to reproduce:

1. Create new Java application with name javapp
2. Create first groovy class NewGroovyClass in packagegroovy:

class NewGroovyClass {	
}

3. Create second groovy class DifferentGroovyClass in packagegroovy2:

class DifferentGroovyClass {
}

4. Create third groovy class in javapp package where the Java main class is already present:

class GroovyClassInPkgWithJava {	
}

5. In the NewGroovyClass use code completion after import statement ("import ^"). In the suggested proposals there is "javapp" package present, but there is not "packagegroovy2". This is because in the "packagegroovy2" there is no Java class.