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 - package declaration
Summary: package declaration
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-18 10:50 UTC by fuadmuhammad
Modified: 2010-09-23 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

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