Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Namespace capitalization problem

 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dinesh Kumar
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dinesh
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This was written in the book "Thinking in Java" Second Edition. by Bruce Eckel
Regards,
Arijit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic