Is intent to *check* or *set* assertions?

Joel Buckley mail2leoj at
Mon Dec 25 01:25:10 UTC 2017

Hi Graal-dev,

In[1], is the intent to *check* and/or *set* assertions to *true*?

     * Checks whether assertions are enabled in the VM.
     * @return true if assertions are enabled.
    public static boolean assertionsEnabled() {
        boolean assertionsEnabled = false;
        assert assertionsEnabled = true; // should this be “== true”?
        return assertionsEnabled; // Otherwise, this is always true...


[1] <>

More information about the graal-dev mailing list