GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Namespace capitalization problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Namespace capitalization problem" Watch "Namespace capitalization problem" New topic
Author

Namespace capitalization problem

Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
In Java 1.0 and Java 1.1 the domain extensions com, edu, org, net, etc., were capitalized by convention, so the library would appear: COM.abc.def. Partway through the development of Java 2, however, it was discovered that this caused PROBLEMS, and so now the entire package name is lowercase
What kind of problem ?
Does this mean that writing NameSpace in CAPS is an error ?
Regards,
Arijit


Regards,<br /> Arijit
Dinesh Kumar
Ranch Hand

Joined: Jul 03, 2002
Posts: 54
I don't think it's an error Arijit. It probably means that java converts them to lower case on its own.
The problems would occur in systems like Unix / Linux etc. where the case of package names matters as the system would treat a folder named "com" and another one named "COM" as being two different folders.
...Dinesh
Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
Thanks Dinesh
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12792
    
    5
In Java 1.0 and Java 1.1 the domain extensions com, edu, org, net, etc., were capitalized by convention, so the library would appear: COM.abc.def. Partway through the development of Java 2, however, it was discovered that this caused PROBLEMS, and so now the entire package name is lowercase

I worked alot with Java 1.0 and Java 1.1 and I don't recall ever seeing that usage anywhere. Where did you see it?
Bill
Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
This was written in the book "Thinking in Java" Second Edition. by Bruce Eckel
Regards,
Arijit
 
GeeCON Prague 2014
 
subject: Namespace capitalization problem