commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <>
Subject Re: [proxy] Commons-Lang Dependency...
Date Fri, 09 Sep 2005 10:41:13 GMT
Andrei Polushin <> writes:

>Henning P. Schmiedehausen writes:
>> One of the quirks in the Java language is, that the package names
>> (foo,, imply a hierarchy which in fact does not
>> exist. There is no "visible in package and sub-packages" modifier. So
>> if you want to use an utility class in foo,, foo.baz, you have
>> to make it public (Sun, are you listening? Here is a chance for
>> another cool new scope that C# probably doesn't have yet. ;-) )

Thanks for the pointer. I wasn't aware of that. However, my C#
experience doesn't stretch much beyond "hello, world". :-)

>It's off-topic, but C# does provide the desired meaning with its 
>'internal' access modifier keyword, and there is no 'package private' 
>classes there, see 

That shows that C# derives from C. :-) This is the same thing as a
global "static" in a C program. The symbol is not visible through the
linker/whatever it is called for Assemblies these days.

>The possible Java pattern is to provide 'private' package(s), and 
>prohibit their usage, like Sun did with sun.* packages: 

But that is a usage pattern, not a compiler enforced restriction. That
is what we do all the time by putting "don't use this class in your
programs" comments in the classes.

	Best regards

Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH        +49 9131 50 654 0

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

		      4 - 8 - 15 - 16 - 23 - 42

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message