Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-vcm-dev] Re: Move Delete Hooks problem

On Tue, 18 Mar 2003, Clemm, Geoff wrote:

> I looked at bud id=22458, and the thread seems to
> assume that renaming package "x" to be "xnew" should
> not also rename "x.y" to be "xnew.y" and "x.y.z" to
> be "xnew.y.z", but instead should just leave "x" in
> place and move the classes defined in "x" to the
> new package.
> 
> I'm interested in what is the basis for this opinion?

I would think the Java Language Specification, saying e.g. "The hierarchical 
naming structure for packages is intended to be convenient for organizing 
related packages in a conventional manner, but has no significance in 
itself..."

This means that although the packages "x.y" and "x.y.z" share some part 
of their names ("x.y"), there is no direct relation between them (other 
than convention). So the packages are independent of each other and as 
such, renaming should work independetly on those packages.

Greetings,
Boris

-- 
"Engineering does not require science. Science helps a lot but 
people built perfectly good brick walls long before they knew why 
cement works." - Alan Cox




Back to the top