Bug 92765 - package declaration
package declaration
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
5.x
All All
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-18 10:50 UTC by fuadmuhammad
Modified: 2010-09-23 08:38 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


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 


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo