The information in this article applies to:
SYMPTOMSThe expression in the IF statement of an empty IF block is not executed. CAUSEThis is a bug in the Just In Time (JIT) compiler where the empty IF block is optimized out. As a result, it does not execute the expression in the IF statement. RESOLUTION
Try one of the following to work around this problem:
STATUSThis bug has been fixed in Microsoft virtual machine version 3154 or higher. MORE INFORMATIONSteps to Reproduce BehaviorThe following code reproduces the JIT bug when you run it on a computer containing an earlier version of the Microsoft virtual machine (such as 2924 or 2925):
When you run this sample code on the Microsoft virtual machine versions 2924 or 2925 you get the following output: C:\>jview ifop before call to runme after call to runme Upgrading the Microsoft virtual machine version 3154 (or later), turning the JIT off, or replacing the comment "// do nothing" with an executable statement produces the correct results as follows: C:\>jview ifop before call to runme runme got executed! after call to runme REFERENCES
For additional information about Microsoft virtual machine, please see the following article in the Microsoft Knowledge Base: Q163638 HOWTO: Automatically Update the Microsoft VMFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java, please see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ Additional query words:
Keywords : kbJavaVM kbJIT kbGrpJava |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |