I think it might make sense to revise Java's scope rules so that:
com.x.a.b in can see default scope methods in com.x.a but not the
reverse. Perhaps some new scope type could let com.x.a see methods in
com.x.a.b but they woulds not be public outside that tree.
The problem with the way things are now, you get forced into making
things public you don't really want known outside the package tree.
--
Roedy Green Canadian Mind Products
http://mindprod.com
When you were a child, if you did your own experiment
to see if it was better to put to cocoa into your cup first
or the hot milk first, then you likely have the programmer gene..