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 92765

Summary: package declaration
Product: java Reporter: fuadmuhammad <fuadmuhammad>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description fuadmuhammad 2007-01-18 10:50:09 UTC
package declaration does not match with actual source code folder 

when we have java code :

package test.test
class foo{
}

Above class must be in 
/projectfolder/sourcefolder/test/test

but if we put it at wrong folder. Editor don't give us error message
Comment 1 Jiri Prox 2007-01-18 11:49:10 UTC
It's valid java code. The naming convention binds only public class name and
java file name, not the package and folder 


I would be nice to have some warninig that the java file is located in wrong
folder (e.g. user can do a typo in package statement) -> changing to Enhancement