Java (JLS) , Java-- (JVMS)
Oracle JDK 1.8.0_45 assert. :
public class Assert {
static final int[] $assertionsDisabled = new int[0];
public static void main(String[] args) {
System.out.println(int.length);
assert System.currentTimeMillis() == 0L;
}
}
Oracle JDK 1.8.0_45, (int[]) (bool), . :
static final boolean $assertionsDisabled = false;
:
the symbol $assertionsDisabled conflicts with a compile synthesized symbo
. fooobar.com/questions/16763/....
,
, . :
void f(int i) { System.out.println("int"); }
void f(float i) { System.out.println("float"); }
int i;
float i;
void m() { f(i); }