The information in this article applies to:
SYMPTOMSThe following code sets the Boolean to true, whereas the correct value is false:
b is set to true.
CAUSEThis problem is due to bad code generated by the compiler. WORKAROUNDChange the above code as shown below:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual J++ 1.1. MORE INFORMATIONThe problem occurs only when 0 is the literal on the left side of the operator. If the left side of the operator is a variable or a literal other than 0, then the expression is evaluated correctly. The following expressions are evaluated correctly:
Some of the common places where you might run into this bug are in
conditional statements or loops.
Steps to Reproduce ProblemUse the following code to reproduce the problem:
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, see the following page on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ Additional query words: comparison
Keywords : kbCommandLine kbVJ100bug kbVJ110fix |
Last Reviewed: December 22, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |