This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Static executables


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]