+2002-08-13 Jesse Rosenstock <jmr@fulcrummicro.com>
+
+ For PR java/7483:
+ * parse.y (build_assertion): Invert return from
+ desiredAssertionStatus.
+
2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* jcf-write.c (get_access_flags): Return correct access flags for
call = build (CALL_EXPR, NULL_TREE, id, NULL_TREE, NULL_TREE);
call = make_qualified_primary (classdollar, call, location);
TREE_SIDE_EFFECTS (call) = 1;
+
+ /* Invert to obtain !CLASS.desiredAssertionStatus(). This may
+ seem odd, but we do it to generate code identical to that of
+ the JDK. */
+ call = build1 (TRUTH_NOT_EXPR, NULL_TREE, call);
+ TREE_SIDE_EFFECTS (call) = 1;
DECL_INITIAL (field) = call;
/* Record the initializer in the initializer statement list. */