Re: Using the word java as part of a package name
Mangalaganesh Balasubramanian wrote:
Is there any restricion on using java as part of my package name.
For eg,
com.test.java.impl
The JDK do not complain when i compile the code but i wanted to hear
what people do?
I was under the impression that the java as part of the package name
should only be used by the JDK libraries/classes.
Daniel Pitts wrote:
There is no technical restriction, but I wonder why you would want to?
If its a java package, then its clear that its java. The one thing I
would absolutely avoid is having the package name START with "java".
Right. The rule is:
<http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.8.1>
Names of packages intended only for local use should have a first identifier that begins with a lowercase letter, but that first identifier specifically should not be the identifier java; package names that start with the identifier java are reserved by Sun for naming Java platform packages.
Also, I would suspect that use even further down the package hierarchy,
besides being useless, violates Sun's trademark.
<http://java.sun.com/javase/6/docs/technotes/guides/jni/spec-1.4/copyright.html>
(and any other Sun copyright page)
Sun, the Sun logo, Sun Microsystems, SunNet Manager, SunCore, SunWeb, Sun Workshop, Sun Workstation, Java, the Java Coffee Cup logo, JavaSoft, JavaBeans, HotJava, HotJava Views, Java WorkShop, Visual Java, JDK and all Java-based trademarks and logos, Solaris, the Solaris sunburst design, SolarNet, Solstice, NEO, Joe, Netra, NFS, PC-NFS, ONC, ONC+, OpenWindows, SNM, The Network Is The Computer, ToolTalk, Ultra, Ultracomputing, Ultraserver, Where The Network Is Going, and XView, are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.
--
Lew