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.
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.