For PR java/7483:

2002-08-13  Jesse Rosenstock  <jmr@fulcrummicro.com>

	For PR java/7483:
	* parse.y (build_assertion): Invert return from
	desiredAssertionStatus.

From-SVN: r56264
This commit is contained in:
Jesse Rosenstock 2002-08-13 22:29:23 +00:00 committed by Tom Tromey
parent 2933735169
commit ee1884cb9b
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -15353,6 +15353,12 @@ build_assertion (location, condition, value)
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. */