public Object constantValue() {
        Object result = sym.getConstValue();
        if (result != null && sym.type.tag == TypeTags.BOOLEAN)
            // javac represents false and true as Integers 0 and 1
            result = Boolean.valueOf(((Integer)result).intValue() != 0);
        return result;
    }