Static executables

Per Bothner per@bothner.com
Tue Jan 31 07:06:00 GMT 2006


Mohan Embar wrote:
> (i.e. private static final Class c1 = gnu.java.locale.Calendar.class)

An optimizer might might remove an unused private field
that is initialized by a side-effect-free expression.

Of course we can agree that this is a special idiom that the
optimizer recognizes (at least in static mode), and thus
not remove the field.

Or just not use a private field.
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Java mailing list