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.
«Package does not exist» hint near import of empty package in free-form project. Directory tree: /app /package1 Class1.java /package2 Class1.java package package1; import package2.*; // An error hint here public class Class1 {} Reproducing: 1. Install «Play! Framework» 2. Create new project (e.g. "$ play new NewApp") 3. Prepare for netbeans ("$ play netbeansify NewApp") 4. Open project in NetBeans Voilà...
The command line compiler will produce the very same error message. Package is considered to be existent only if it contains at least one class. So sorry, but this is not a valid bug.
So, this is an issue of «Play! Framework», therefore there should be special handling or support of Play projects, because Play runs that code fine.
Nothing in common with freeform project. BTW according to Java Language Specification the code in this issue is compiler error. It compiles probably because of a bug in ejc or someone generates some code into the empty package before it's compiled. <cite> 7.4.3 Observability of a Package A package is observable if and only if either: A compilation unit containing a declaration of the package is observable. A subpackage of the package is observable. Also see section 7.4.1 of JLS </cite>
netbeansify configures the directory structure you are going to need to use for play. All play projects will have models so the initial empty model packages will soon fill up with code and the red bars will go away. Have to agree that it is not a bug.