FIX: Function call is not executed when used as expression in empty IF block (214531)
The information in this article applies to:
- Microsoft virtual machine
This article was previously published under Q214531 SYMPTOMS
The expression in the IF statement of an empty IF block is not executed.
CAUSE
This 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: - Upgrade the Microsoft virtual machine (Microsoft VM) to version 3154 or later.
For more information about obtaining the latest version of the Microsoft VM, click the following article number to view the article in the Microsoft Knowledge Base:
163637
INFO: Availability of Current Build of Microsoft VM
- Turn off the JIT. This can cause some Java programs to run at a slower speed. For additional information about the JIT, please see the following article in the Microsoft Knowledge Base:
154580 Description of the Just-In-Time Compiler
- Place code in the IF block that you want to execute. However, this might not be the effect you are looking for.
STATUS
This bug has been fixed in Microsoft virtual machine version 3154 or higher.
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbbug kbfix kbJIT KB214531 kbAudDeveloper |
---|
|