R
Roedy Green
If you have some code like this:
class A
{
static String VERSION = "1.0b";
}
and
class B
{
static String VERSION = A.VERSION;
}
When you use Class B, does all of class A get instantiated?
Does all of class A get put in B's jar?
If so, it suggests you are better off to have a tiny common class and
have A and B reference it.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.
class A
{
static String VERSION = "1.0b";
}
and
class B
{
static String VERSION = A.VERSION;
}
When you use Class B, does all of class A get instantiated?
Does all of class A get put in B's jar?
If so, it suggests you are better off to have a tiny common class and
have A and B reference it.
--
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.