FIX: Compiler Handles Comma as an Operator
Article ID: 156911
Article Last Modified on 5/12/2007
APPLIES TO
- Microsoft Visual J++ 1.0 Standard Edition
This article was previously published under Q156911
SYMPTOMS
The 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.
WORKAROUND
The 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++;
STATUS
Microsoft 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.
REFERENCES
For the latest Knowledge Base articles and other support information on
Visual J++ and the SDK for Java, see the following pages on the
Microsoft Technical Support site:
Keywords: kbbug kbcommandline kbfix KB156911