Java constant expressions and code elimination
问题 As discussed here, javac and other Java compilers may provide code elimination capabilities for if -statements where the condition is a "Constant Expression". How is this affected if my code uses a constant expression that depends on other constant expressions defined in different packages? For example, let's say I have the following classes in the respective specified packages: package foo; public class Foo { public static final boolean CONDITION = false; } and package bar; import foo.Foo;