FIX: Compiler Handles Comma as an OperatorLast reviewed: January 22, 1998Article ID: Q156911 |
The information in this article applies to:
SYMPTOMSThe following code compiles with out any errors:
i++, j++;The comma is not defined as an operator in Java and the compiler should not compile the code.
WORKAROUNDThe above code works fine and has the desired effect you would expect in C. But because it is not valid Java code, it may not compile with other Java compilers or with later versions of Visual J++. Change the above lines to valid Java statements as follows:
i++; j++; 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.
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/ http://support.microsoft.com/support/java/ Keywords : kbtool CmdLnUtils Technology : kbInetDev Version : 1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbfix |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |