"(unless this static import does also other things)" It just imports static members which do not need an instance of the class to be used. It certainly does not overcome the issue of A not being a public class. First the class A has to be visible to the package pack2 before even public members of A can be accessed.
It is a
Java 5.0 feature by the way - The Tiger is dead, long live Java 5.0! (for a few more months at least).
[ October 17, 2005: Message edited by: Barry Gaunt ]