Two projects use a same package name.
1 posts in topic
Flat View  Flat View

Posted By:   Alfred_Leung
Posted On:   Thursday, November 8, 2001 01:17 PM

On VAJ 4.0, I have created a project and build a package name "utility" for the project. Later on I build another project I also hope to build a package called "utility" for it. But VAJ complains that I can't use the package name "utility" anymore. But in my mind this "utility" package is something different than the one for the first project. Is there any workaround if I don't want to change my package name for the second project? These two projects are basically independent of each other.



Re: Two projects use a same package name.

Posted By:   Eric_Rizzo  
Posted On:   Friday, November 9, 2001 06:46 AM

No, package names are intended to be unique. That is why the naming convention for them includes an organization's domain name in reverse order, such as com.sun.java....

A simple name like "utility" is a very poor choice for package name because of the likelyhood of a conflict such as you have. Package names should reflect something about who is writing or owns the code, as well as the "project" or application to which it belongs.
About | Sitemap | Contact